Changed return value of GetActiveCues

Return an empty TextTrackCueList rather than Some.

Added previously removed comments.
This commit is contained in:
Adit Jain 2019-01-18 22:18:11 +05:30 committed by aditj
parent 81ab255b70
commit df1119b7cb

View file

@ -114,7 +114,7 @@ impl TextTrackMethods for TextTrack {
fn GetActiveCues(&self) -> Option<DomRoot<TextTrackCueList>> { fn GetActiveCues(&self) -> Option<DomRoot<TextTrackCueList>> {
// XXX implement active cues logic // XXX implement active cues logic
// https://github.com/servo/servo/issues/22314 // https://github.com/servo/servo/issues/22314
None Some(TextTrackCueList::new(&self.global().as_window(), &[]))
} }
// https://html.spec.whatwg.org/multipage/#dom-texttrack-addcue // https://html.spec.whatwg.org/multipage/#dom-texttrack-addcue