DescriptionUse TextTrackKind enum in HTMLMediaElement.addTextTrack IDL signature
With https://codereview.chromium.org/831483004 is becomes possible to use
the TextTrackKind enum defined in TextTrack.idl without redefining it.
Do that, and also update the spec. steps in HTMLMediaElement::addTextTrack
to match a later version. Move the call to setReadinessState() since it
does not cause any side-effects, but add a comment about a potential issue
with the current order of setup.
Also add default values to the optional arguments and drop the unneeded
forwarders. This also means that undefined will now be properly handled
for these arguments.
Update tests to reflect the new exception thrown as well as the behavior
with undefined.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188644
Patch Set 1 #
Total comments: 6
Patch Set 2 : Nits. #
Messages
Total messages: 7 (2 generated)
|