DescriptionSeparate VTTCue from VTTCueBox and LayoutVTTCue
Both VTTCueBox and LayoutVTTCue had a VTTCue member, which made for
tricky lifetime considerations, in particular the VTTCue destructor
was removing the VTTCueBox from the DOM, so that the stale VTTCue*
pointers would never be accessed.
Instead, let VTTCue provide VTTCueBox with the information it needs,
which will in turn provide it to LayoutVTTCue. Stale information
should not be a problem, as all relevant changes to VTTCue will call
cueDidChange(), whichs ends up removing and re-inserting the cue.
Refactoring only, no web-observable changes are intended.
BUG=511174, 509911
R=fs@opera.com
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=199160
Patch Set 1 #Patch Set 2 : rebase #
Total comments: 8
Patch Set 3 : empty constructor, explicit keyword #
Messages
Total messages: 20 (7 generated)
|