Replace HTMLMediaElement::isActive() with Node::inActiveDocument()

The m_active flag was previously named m_inActiveDocument:
https://codereview.chromium.org/26270004

Because m_active is updated in HTMLMediaElement::insertedInto(),
removedFrom() and stop(), HTMLMediaElement::isActive() it is very
similar to Node::inActiveDocument(), with the difference that in the
early stages of a Document's life, inActiveDocument() is false while
isActive() is true.

In RenderVideo, the difference is irrelevant, because nothing is being
rendered at that point in the lifecycle.

The usage in HTMLMediaElement::endIgnoringTrackDisplayUpdateRequests()
was added to fix failing tests in
https://bugs.webkit.org/show_bug.cgi?id=105606:

media/track/tracklist-is-reachable.html
media/track/text-track-cue-is-reachable.html
media/track/text-track-is-reachable.html
media/track/track-webvtt-tc005-header-comment.html
media/track/track-webvtt-tc004-magic-header.html
media/track/track-webvtt-tc016-align-positioning.html

All of these are still passing.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@185854 bbb929c8-8fbe-4397-9dbb-9b2b20218538
3 files changed
tree: 50f00a7c86fbcbb185bc1bcdf970c3964aedb045
  1. third_party/