Fix TextTrackList event attribute lookups when in a detached state.

The TextTrackList object that is attached to a media element can
(non Oilpan) live beyond that of its owning media element. The object
is also an event target, with the events being fired by its owning
media element. Consequently, the execution context is equal to that
of its owner element.

Adjust the TextTrackList's execution context lookup to reflect
that -- if the owner element is not present, there simply is no
execution context.

R=haraken@chromium.org
BUG=365260

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

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