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

Issue 960233002: Eliminate calls to TextTrackCue::setIsActive outside of CueTimeline (Closed)

Created:
5 years, 10 months ago by fs
Modified:
5 years, 10 months ago
Reviewers:
philipj_slow
CC:
blink-reviews, nessy, philipj_slow, gasubic, fs, eric.carlson_apple.com, blink-reviews-html_chromium.org, dglazkov+blink, vcarbune.chromium
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Eliminate calls to TextTrackCue::setIsActive outside of CueTimeline Hoisting the calls to setIsActive and removeDisplayTree out of TextTrackCueList::updateCueIndex into its single caller (TextTrack::cueDidChange), it becomes evident that at this point in the state update, the cue in question should already be both inactive and have had its "display tree" removed. Hence the pair of calls can be dropped. The same logic can also be applied in TextTrack::removeCue where we have the same operations being performed. Reorganize the code slightly to get timeline updates at the end of the cue{Will,Did}Change methods, and document the invariants. BUG=321654 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190927

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -14 lines) Patch
M Source/core/html/track/TextTrack.cpp View 2 chunks +14 lines, -11 lines 0 comments Download
M Source/core/html/track/TextTrackCueList.cpp View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
fs
5 years, 10 months ago (2015-02-26 15:20:18 UTC) #2
philipj_slow
lgtm
5 years, 10 months ago (2015-02-26 15:25:22 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/960233002/1
5 years, 10 months ago (2015-02-26 15:26:25 UTC) #5
commit-bot: I haz the power
5 years, 10 months ago (2015-02-26 15:52:49 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://src.chromium.org/viewvc/blink?view=rev&revision=190927

Powered by Google App Engine
This is Rietveld 408576698