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

Issue 1862313002: Update PaintLayer::needsPaintPhaseXXX flags when add/remove layer on style change (Closed)

Created:
4 years, 8 months ago by Xianzhu
Modified:
4 years, 8 months ago
Reviewers:
pdr., chrishtr
CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang, slimming-paint-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update PaintLayer::needsPaintPhaseXXX flags when add/remove layer on style change When addding/removing a layer on style change, we may not do paint invalidation to update the needsPaintPhaseXXX flags, so we need to update the flags manually. In the future, the logic can be simplified by updating the flags during pre-painting tree walk. BUG=598978 Committed: https://crrev.com/eb3bc319810c236e1a030d0f0c04867e1cdb8862 Cr-Commit-Position: refs/heads/master@{#386264}

Patch Set 1 #

Patch Set 2 : #

Total comments: 11

Patch Set 3 : #

Total comments: 9

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -19 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp View 1 2 3 2 chunks +2 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayer.h View 1 2 3 3 chunks +10 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayer.cpp View 1 2 3 4 chunks +26 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerPainterTest.cpp View 3 chunks +30 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/README.md View 1 2 1 chunk +26 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (7 generated)
Xianzhu
4 years, 8 months ago (2016-04-06 23:00:50 UTC) #2
chrishtr
I'll leave this review to pdr@. Off on vacation now.
4 years, 8 months ago (2016-04-06 23:18:45 UTC) #3
pdr.
https://codereview.chromium.org/1862313002/diff/20001/third_party/WebKit/Source/core/paint/PaintLayer.cpp File third_party/WebKit/Source/core/paint/PaintLayer.cpp (right): https://codereview.chromium.org/1862313002/diff/20001/third_party/WebKit/Source/core/paint/PaintLayer.cpp#newcode1253 third_party/WebKit/Source/core/paint/PaintLayer.cpp:1253: if (PaintLayer* enclosingSelfPaintingLayer = this->enclosingSelfPaintingLayer()) enclosingSelfPaintingLayer is O(n) so ...
4 years, 8 months ago (2016-04-08 04:19:00 UTC) #4
Xianzhu
https://codereview.chromium.org/1862313002/diff/20001/third_party/WebKit/Source/core/paint/PaintLayer.cpp File third_party/WebKit/Source/core/paint/PaintLayer.cpp (right): https://codereview.chromium.org/1862313002/diff/20001/third_party/WebKit/Source/core/paint/PaintLayer.cpp#newcode1253 third_party/WebKit/Source/core/paint/PaintLayer.cpp:1253: if (PaintLayer* enclosingSelfPaintingLayer = this->enclosingSelfPaintingLayer()) On 2016/04/08 04:19:00, pdr ...
4 years, 8 months ago (2016-04-08 18:08:49 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1862313002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1862313002/40001
4 years, 8 months ago (2016-04-08 18:56:47 UTC) #7
pdr.
Thanks for the detailed explanations. I understand this code better now and I think this ...
4 years, 8 months ago (2016-04-08 19:46:07 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/202210)
4 years, 8 months ago (2016-04-08 20:16:50 UTC) #10
Xianzhu
https://codereview.chromium.org/1862313002/diff/20001/third_party/WebKit/Source/core/paint/PaintLayer.cpp File third_party/WebKit/Source/core/paint/PaintLayer.cpp (right): https://codereview.chromium.org/1862313002/diff/20001/third_party/WebKit/Source/core/paint/PaintLayer.cpp#newcode1254 third_party/WebKit/Source/core/paint/PaintLayer.cpp:1254: enclosingSelfPaintingLayer->mergeNeedsPaintPhaseFlagsFrom(*oldChild); On 2016/04/08 19:46:07, pdr wrote: > On 2016/04/08 ...
4 years, 8 months ago (2016-04-08 21:30:56 UTC) #11
pdr.
LGTM > https://codereview.chromium.org/1862313002/diff/40001/third_party/WebKit/Source/core/paint/PaintLayer.cpp#newcode1330 > third_party/WebKit/Source/core/paint/PaintLayer.cpp:1330: if (PaintLayer* enclosingSelfPaintingLayer = m_parent->enclosingSelfPaintingLayer()) > On 2016/04/08 19:46:07, pdr ...
4 years, 8 months ago (2016-04-08 22:15:16 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1862313002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1862313002/60001
4 years, 8 months ago (2016-04-09 00:24:01 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-09 00:54:00 UTC) #17
commit-bot: I haz the power
4 years, 8 months ago (2016-04-09 00:55:28 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/eb3bc319810c236e1a030d0f0c04867e1cdb8862
Cr-Commit-Position: refs/heads/master@{#386264}

Powered by Google App Engine
This is Rietveld 408576698