Closed Bug 1276832 Opened 9 years ago Closed 9 years ago

[webvtt] VTTCue's line should be auto or double

Categories

(Core :: Audio/Video: Playback, defect)

Other Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla50
Tracking Status
firefox50 --- fixed

People

(Reporter: alwu, Assigned: alwu)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

https://w3c.github.io/webvtt/#vttcue Now we return "long" or "auto", but it's wrong.
Attachment #8760111 - Flags: review?(giles)
Attachment #8759621 - Flags: review?(giles)
Attachment #8759621 - Flags: review?(bugs)
Attachment #8759622 - Flags: review?(giles)
Comment on attachment 8759621 [details] Bug 1276832 - part1 : modify VTTCue's line to double. Review request updated; see interdiff: https://reviewboard.mozilla.org/r/57562/diff/1-2/
Comment on attachment 8759622 [details] Bug 1276832 - part2 : modify vtt.jsm. Review request updated; see interdiff: https://reviewboard.mozilla.org/r/57564/diff/1-2/
Comment on attachment 8759621 [details] Bug 1276832 - part1 : modify VTTCue's line to double. https://reviewboard.mozilla.org/r/57562/#review54732 r+ for the .webidl
Attachment #8759621 - Flags: review?(bugs) → review+
Comment on attachment 8759621 [details] Bug 1276832 - part1 : modify VTTCue's line to double. https://reviewboard.mozilla.org/r/57562/#review56048 r=me with issue addressed. ::: dom/media/TextTrackCue.cpp:183 (Diff revision 2) > + (mLine < 0.0 || mLine > 100.0)) { > + return 100.0; > + } else if (!mLineIsAutoKeyword) { > + return mLine; > + } else if (mLineIsAutoKeyword) { > + return 100.0; This should be `if (!mSnapToLines)`, I think. otherwise the rest of the code is unreachable.
Attachment #8759621 - Flags: review?(giles) → review+
Attachment #8759622 - Flags: review?(giles) → review+
Comment on attachment 8759622 [details] Bug 1276832 - part2 : modify vtt.jsm. https://reviewboard.mozilla.org/r/57564/#review56050 I don't mind the change, bug I am curious. Why did you move the computed line function into C++ from Javascript? If vtt.js is a general implementation of WebVTT this seems a useful thing to include.
(In reply to Ralph Giles (:rillian) needinfo me from comment #9) > I don't mind the change, bug I am curious. Why did you move the computed > line function into C++ from Javascript? If vtt.js is a general > implementation of WebVTT this seems a useful thing to include. The "computed line" is defined as cue's internal property [1], the same as "computed position", "computed position alignment". Therefore, I think it's more appropriate to move them to C++. [1] https://w3c.github.io/webvtt/#cue-computed-line
Comment on attachment 8759621 [details] Bug 1276832 - part1 : modify VTTCue's line to double. Review request updated; see interdiff: https://reviewboard.mozilla.org/r/57562/diff/2-3/
Comment on attachment 8759622 [details] Bug 1276832 - part2 : modify vtt.jsm. Review request updated; see interdiff: https://reviewboard.mozilla.org/r/57564/diff/2-3/
Comment on attachment 8760111 [details] Bug 1276832 - part3 : modify test. Review request updated; see interdiff: https://reviewboard.mozilla.org/r/57822/diff/1-2/
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: