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

Issue 2791933003: setMayNeedPaintInvalidation in setNeedsOverflowRecalcAfterStyleChange() (Closed)

Created:
3 years, 8 months ago by Xianzhu
Modified:
3 years, 8 months ago
Reviewers:
chrishtr, pdr.
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/heads/master
Project:
chromium
Visibility:
Public.

Description

setMayNeedPaintInvalidation in setNeedsOverflowRecalcAfterStyleChange() This is to ensure needsPaintOffsetAndVisualRectUpdate() when overflow will change because of style change. It was added in https://codereview.chromium.org/2751523011/ then removed in https://codereview.chromium.org/2776583003/ because it caused paint time regression when scrolling google search result page. This CL adds it back, and added a condition to avoid unnecessary paint invalidation when a container's location changes. BUG=704182 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2791933003 Cr-Commit-Position: refs/heads/master@{#461829} Committed: https://chromium.googlesource.com/chromium/src/+/347d17a607d7f379ba66bb4904869c1b530aac2b

Patch Set 1 #

Total comments: 4

Patch Set 2 : - #

Total comments: 2

Patch Set 3 : - #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -1 line) Patch
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintInvalidationTest.cpp View 1 2 2 chunks +70 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintInvalidator.cpp View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 15 (6 generated)
Xianzhu
3 years, 8 months ago (2017-04-03 22:00:16 UTC) #3
Xianzhu
3 years, 8 months ago (2017-04-04 01:19:38 UTC) #5
chrishtr
https://codereview.chromium.org/2791933003/diff/1/third_party/WebKit/Source/core/paint/PaintInvalidationTest.cpp File third_party/WebKit/Source/core/paint/PaintInvalidationTest.cpp (right): https://codereview.chromium.org/2791933003/diff/1/third_party/WebKit/Source/core/paint/PaintInvalidationTest.cpp#newcode87 third_party/WebKit/Source/core/paint/PaintInvalidationTest.cpp:87: // This is a simlified test case for crbug.com/704182. ...
3 years, 8 months ago (2017-04-04 16:26:05 UTC) #6
Xianzhu
https://codereview.chromium.org/2791933003/diff/1/third_party/WebKit/Source/core/paint/PaintInvalidationTest.cpp File third_party/WebKit/Source/core/paint/PaintInvalidationTest.cpp (right): https://codereview.chromium.org/2791933003/diff/1/third_party/WebKit/Source/core/paint/PaintInvalidationTest.cpp#newcode87 third_party/WebKit/Source/core/paint/PaintInvalidationTest.cpp:87: // This is a simlified test case for crbug.com/704182. ...
3 years, 8 months ago (2017-04-04 16:58:31 UTC) #7
chrishtr
https://codereview.chromium.org/2791933003/diff/20001/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp File third_party/WebKit/Source/core/paint/PaintInvalidator.cpp (right): https://codereview.chromium.org/2791933003/diff/20001/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp#newcode491 third_party/WebKit/Source/core/paint/PaintInvalidator.cpp:491: !context.paintingLayer->subtreeIsInvisible()) { Could you add a test checking that ...
3 years, 8 months ago (2017-04-04 17:03:45 UTC) #8
Xianzhu
https://codereview.chromium.org/2791933003/diff/20001/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp File third_party/WebKit/Source/core/paint/PaintInvalidator.cpp (right): https://codereview.chromium.org/2791933003/diff/20001/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp#newcode491 third_party/WebKit/Source/core/paint/PaintInvalidator.cpp:491: !context.paintingLayer->subtreeIsInvisible()) { On 2017/04/04 17:03:45, chrishtr wrote: > Could ...
3 years, 8 months ago (2017-04-04 18:03:34 UTC) #9
chrishtr
lgtm
3 years, 8 months ago (2017-04-04 18:10:29 UTC) #11
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/2791933003/40001
3 years, 8 months ago (2017-04-04 18:11:02 UTC) #12
commit-bot: I haz the power
3 years, 8 months ago (2017-04-04 20:54:51 UTC) #15
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/347d17a607d7f379ba66bb490486...

Powered by Google App Engine
This is Rietveld 408576698