Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(295)

Issue 1240433007: Separate VTTCue from VTTCueBox and LayoutVTTCue (Closed)

Created:
5 years, 5 months ago by philipj_slow
Modified:
5 years, 5 months ago
Reviewers:
sof, fs
CC:
blink-reviews, nessy, szager+layoutwatch_chromium.org, zoltan1, eae+blinkwatch, gasubic, fs, eric.carlson_apple.com, leviw+renderwatch, blink-reviews-html_chromium.org, dglazkov+blink, blink-reviews-rendering, jchaffraix+rendering, pdr+renderingwatchlist_chromium.org, vcarbune.chromium
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Separate 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -60 lines) Patch
M Source/core/html/track/vtt/VTTCue.h View 1 2 1 chunk +9 lines, -7 lines 0 comments Download
M Source/core/html/track/vtt/VTTCue.cpp View 1 2 9 chunks +44 lines, -31 lines 0 comments Download
M Source/core/layout/LayoutVTTCue.h View 1 2 2 chunks +6 lines, -5 lines 0 comments Download
M Source/core/layout/LayoutVTTCue.cpp View 5 chunks +9 lines, -17 lines 0 comments Download

Messages

Total messages: 20 (7 generated)
philipj_slow
5 years, 5 months ago (2015-07-17 12:03:02 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1240433007/1
5 years, 5 months ago (2015-07-17 12:03:10 UTC) #3
philipj_slow
There's still some ugly around regions, but I'll just leave that for now.
5 years, 5 months ago (2015-07-17 12:03:57 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/63239) (exceeded global ...
5 years, 5 months ago (2015-07-17 12:05:25 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1240433007/20001
5 years, 5 months ago (2015-07-17 12:12:46 UTC) #8
fs
LGTM w/ some comments/notes https://codereview.chromium.org/1240433007/diff/20001/Source/core/html/track/vtt/VTTCue.cpp File Source/core/html/track/vtt/VTTCue.cpp (right): https://codereview.chromium.org/1240433007/diff/20001/Source/core/html/track/vtt/VTTCue.cpp#newcode827 Source/core/html/track/vtt/VTTCue.cpp:827: if (regionId().isEmpty()) { Maybe you ...
5 years, 5 months ago (2015-07-17 14:31:48 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 5 months ago (2015-07-17 15:28:23 UTC) #11
philipj_slow
Thanks for review! I haven't made any changes, but if there's something that comes to ...
5 years, 5 months ago (2015-07-20 07:33:30 UTC) #12
philipj_slow
sof, can you please check this for Oilpan sanity? Not sure if the removal of ...
5 years, 5 months ago (2015-07-20 07:41:08 UTC) #14
sof
lgtm oilpan-wise. https://codereview.chromium.org/1240433007/diff/20001/Source/core/html/track/vtt/VTTCue.cpp File Source/core/html/track/vtt/VTTCue.cpp (left): https://codereview.chromium.org/1240433007/diff/20001/Source/core/html/track/vtt/VTTCue.cpp#oldcode246 Source/core/html/track/vtt/VTTCue.cpp:246: VTTCue::~VTTCue() It would be preferable to keep ...
5 years, 5 months ago (2015-07-20 08:15:39 UTC) #15
philipj_slow
Thanks sof! https://codereview.chromium.org/1240433007/diff/20001/Source/core/html/track/vtt/VTTCue.cpp File Source/core/html/track/vtt/VTTCue.cpp (left): https://codereview.chromium.org/1240433007/diff/20001/Source/core/html/track/vtt/VTTCue.cpp#oldcode246 Source/core/html/track/vtt/VTTCue.cpp:246: VTTCue::~VTTCue() On 2015/07/20 08:15:39, sof wrote: > ...
5 years, 5 months ago (2015-07-20 08:34:16 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1240433007/40001
5 years, 5 months ago (2015-07-20 08:34:32 UTC) #19
commit-bot: I haz the power
5 years, 5 months ago (2015-07-20 10:00:38 UTC) #20
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=199160

Powered by Google App Engine
This is Rietveld 408576698