Closed
Bug 882714
Opened 11 years ago
Closed 11 years ago
[webvtt] Implement the TextTrackCue::display state
Categories
(Core :: Audio/Video, defect)
Core
Audio/Video
Tracking
()
RESOLVED
FIXED
mozilla25
People
(Reporter: reyre, Assigned: reyre)
References
()
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
Details | Diff | Splinter Review |
This is used in the rendering model to keep the display of cues consistent.
Assignee | ||
Comment 1•11 years ago
|
||
As far as I can tell this is basically the computed DOM structure of the parsed cue text data. What I would think would need to happen for this bug to get done is to have the computed DOM structure generated lazily and have some kind of mechanism for marking dirty cue text that needs to be re-computed.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → rick.eyre
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•11 years ago
|
||
I've renamed mCueDiv to mDisplayState to keep more inline with the spec. I've also introduced mReset in order to tell when we need to rebuild the computed cuetext of the TextTrackCue.
The code that will leverage this will land in bug 865407.
Attachment #768503 -
Flags: review?(giles)
Comment 3•11 years ago
|
||
Comment on attachment 768503 [details] [diff] [review]
v1: Implement TextTrackCue::DisplayState
Review of attachment 768503 [details] [diff] [review]:
-----------------------------------------------------------------
r=me
::: content/media/TextTrackCue.h
@@ +341,4 @@
> int mLine;
> TextTrackCueAlign mAlign;
>
> + // Holds the computed CSS boxes that represent the parsed cue text.
We're using this to attach elements, not Frames, so I don't think it's correct to call these 'computed CSS boxes'. Those are generated downstream by the layout engine.
Attachment #768503 -
Flags: review?(giles) → review+
Assignee | ||
Comment 4•11 years ago
|
||
Carring forward r=rillian.
- Updated mDisplayState's comment to reflect that we are generating DOM elements.
- Updated mReset's comment to reflect that it is set anytime any property that affects TextTrackCue's rendering is changed.
Attachment #768503 -
Attachment is obsolete: true
Assignee | ||
Comment 5•11 years ago
|
||
Assignee | ||
Comment 6•11 years ago
|
||
Try looks green. Should we get anyone else to review this Ralph?
Flags: needinfo?(giles)
Assignee | ||
Comment 7•11 years ago
|
||
In our weekly meeting Ralph said that his reviewing of this was enough. Marking for checkin now.
Flags: needinfo?(giles)
Keywords: checkin-needed
Comment 8•11 years ago
|
||
Keywords: checkin-needed
Comment 9•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
You need to log in
before you can comment on or make changes to this bug.
Description
•