Never create HTMLTrackElement when VideoTrack is not enabled

Generalize wrapperOnlyIfMediaIsAvailable into runtimeEnabled to
let audio/video/source depend on Media and track on VideoTrack.

Let VideoTrack depend on Media, since it would otherwise become
possible to create an HTMLTrackElement with Media disabled.

The mediaEnabled setting is set to false by InspectorOverlay and
SVGImage, in both cases presumably to prevent any media
playback. Accomplish this instead by blocking the media load.

BUG=315207

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

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