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

Issue 2488343002: Move clearPaintInvalidatinFlags after subtree walk (Closed)

Created:
4 years, 1 month ago by Xianzhu
Modified:
4 years, 1 month ago
Reviewers:
chrishtr, wkorman
CC:
blink-reviews, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, chromium-reviews, dshwang, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move clearPaintInvalidatinFlags after subtree walk This allows we change paint invalidation flags using setShouldDoFullPaintInvalidation() etc. during paint invalidation to deal with some complex situations, for example: - https://codereview.chromium.org/2430313004/ which sets paint invalidation flag in LayoutTable::recalcCollapsedBordersIfNeeded(). Previously we clear flags before walking subtrees. If some descendant set paint invalidation flags, we would also set flags along the ancestor path causing dirty flags after paint invalidation. This will be needed by several bug fixes and cleanups of paint invalidation. Also removed some redundant checks of slimmingPaintInvalidationEnabled in PrePaintTreeWalker. BUG=660195 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/6cd03514645fe54b0c2010e51a8adfdce7646db4 Cr-Commit-Position: refs/heads/master@{#431402}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -16 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintInvalidator.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp View 3 chunks +7 lines, -10 lines 2 comments Download

Dependent Patchsets:

Messages

Total messages: 23 (11 generated)
Xianzhu
4 years, 1 month ago (2016-11-10 21:33:44 UTC) #7
chrishtr
4 years, 1 month ago (2016-11-10 23:04:36 UTC) #9
wkorman
From the CL description: what are a couple of the complex cases, can we state ...
4 years, 1 month ago (2016-11-10 23:26:41 UTC) #10
Xianzhu
https://codereview.chromium.org/2488343002/diff/1/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp File third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp (left): https://codereview.chromium.org/2488343002/diff/1/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp#oldcode47 third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp:47: if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()) { On 2016/11/10 23:26:41, wkorman wrote: > ...
4 years, 1 month ago (2016-11-10 23:35:47 UTC) #12
wkorman
On 2016/11/10 23:26:41, wkorman wrote: > Is it worth adding a unit test that illustrates ...
4 years, 1 month ago (2016-11-10 23:38:16 UTC) #13
Xianzhu
On 2016/11/10 23:26:41, wkorman wrote: > From the CL description: what are a couple of ...
4 years, 1 month ago (2016-11-10 23:38:52 UTC) #14
wkorman
On 2016/11/10 23:38:52, Xianzhu wrote: > It's not easy to add a unit test for ...
4 years, 1 month ago (2016-11-10 23:51:06 UTC) #15
wkorman
lgtm
4 years, 1 month ago (2016-11-10 23:51:22 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2488343002/1
4 years, 1 month ago (2016-11-10 23:58:09 UTC) #18
Xianzhu
Fwiw the logic is ensured by LayoutObject::assertSubtreeClearedPaintInvalidationFlags() which is called after a FrameView finishes paint ...
4 years, 1 month ago (2016-11-10 23:59:00 UTC) #19
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-11 00:23:34 UTC) #21
commit-bot: I haz the power
4 years, 1 month ago (2016-11-11 00:29:19 UTC) #23
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/6cd03514645fe54b0c2010e51a8adfdce7646db4
Cr-Commit-Position: refs/heads/master@{#431402}

Powered by Google App Engine
This is Rietveld 408576698