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)
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.
Assignee | ||
Comment 1•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/57562/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/57562/
Assignee | ||
Comment 2•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/57564/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/57564/
Assignee | ||
Comment 3•9 years ago
|
||
Assignee | ||
Comment 4•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/57822/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/57822/
Attachment #8760111 -
Flags: review?(giles)
Attachment #8759621 -
Flags: review?(giles)
Attachment #8759621 -
Flags: review?(bugs)
Attachment #8759622 -
Flags: review?(giles)
Assignee | ||
Comment 5•9 years ago
|
||
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/
Assignee | ||
Comment 6•9 years ago
|
||
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 7•9 years ago
|
||
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 8•9 years ago
|
||
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+
Updated•9 years ago
|
Attachment #8759622 -
Flags: review?(giles) → review+
Comment 9•9 years ago
|
||
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.
Comment 10•9 years ago
|
||
Comment on attachment 8760111 [details]
Bug 1276832 - part3 : modify test.
https://reviewboard.mozilla.org/r/57822/#review56052
Attachment #8760111 -
Flags: review?(giles) → review+
Assignee | ||
Comment 11•9 years ago
|
||
(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
Assignee | ||
Comment 12•9 years ago
|
||
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/
Assignee | ||
Comment 13•9 years ago
|
||
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/
Assignee | ||
Comment 14•9 years ago
|
||
Comment on attachment 8760111 [details]
Bug 1276832 - part3 : modify test.
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/57822/diff/1-2/
Comment 15•9 years ago
|
||
Pushed by alwu@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/581aeb0a9dbe
part1 : modify VTTCue's line to double. r=rillian,smaug
https://hg.mozilla.org/integration/mozilla-inbound/rev/c3f20d18028c
part2 : modify vtt.jsm. r=rillian
https://hg.mozilla.org/integration/mozilla-inbound/rev/dfa4e924a16c
part3 : modify test. r=rillian
Comment 16•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/581aeb0a9dbe
https://hg.mozilla.org/mozilla-central/rev/c3f20d18028c
https://hg.mozilla.org/mozilla-central/rev/dfa4e924a16c
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox50:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
You need to log in
before you can comment on or make changes to this bug.
Description
•