DescriptionSimplify LoadableTextTrack construction
HTMLTrackElement::parseAttribute() already sets kind, label and
language when the corresponding attributes change, so we can create a
TextTrack with the default values, leaving all of the logic for
parsing kind in TextTrack::setKind().
This leaves HTMLTrackElement::srclang() and label() unused, so just
use [Reflect] in the IDL for these attributes.
BUG=315510
TEST=media/track/opera/interfaces/TextTrack/kind.html,
media/track/opera/interfaces/TextTrack/label.html,
media/track/opera/interfaces/TextTrack/language.html,
media/track/track-kind.html
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161457
Patch Set 1 #
Messages
Total messages: 8 (0 generated)
|