Avoid shadowing local |event| in CueTimeline::updateActiveCues

Dispatching to the track element would declare an |event| in its scope
that would shadow an |event| in the parent scope.
Avoid this by moving the event-creation-for-a-target to a small helper
function and then use that for all scheduling of events in this method.

BUG=321654

Review URL: https://codereview.chromium.org/935423002

git-svn-id: svn://svn.chromium.org/blink/trunk@190543 bbb929c8-8fbe-4397-9dbb-9b2b20218538
1 file changed
tree: 2d501b44c6d4c31a2a0f61642e98a868a7278274
  1. third_party/