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

Issue 1452313004: Don't use cached subsequence when clip changes (Closed)

Created:
5 years, 1 month ago by Xianzhu
Modified:
5 years, 1 month ago
Reviewers:
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

Don't use cached subsequence when clip changes Previously we disable subsequence caching for layers having clip or overflow-clip to ensure descendant layers to be repainted when an ancestor layer's clip changes. This doesn't work if a descendant layer is painted not using the same PaintLayerPaintingInfo of the ancestor layer (e.g. when the ancestor layer is not a stacking context). This also unnecessarily disables subsequence caching even if clipping doesn't change. Now save previous paintingClipRects and check if it changes before issuing subsequence display item. BUG=533717, 553392 TEST=paint/invalidation/repaint-subsequence-on-ancestor-clip-change.html TEST=paint/invalidation/repaint-subsequence-on-ancestor-clip-change-complex.html Committed: https://crrev.com/1a67416323f77edc8c06f17151bac351fba69e11 Cr-Commit-Position: refs/heads/master@{#360535}

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Messages

Total messages: 14 (5 generated)
Xianzhu
5 years, 1 month ago (2015-11-18 00:03:34 UTC) #2
chrishtr
https://codereview.chromium.org/1452313004/diff/1/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp File third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp (right): https://codereview.chromium.org/1452313004/diff/1/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp#newcode154 third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp:154: void PaintLayerClipper::clearClipRectsIncludingDescendants() It looks like PaintLayer::updateLayerPositionsAfterLayout() calls this unconditionally?
5 years, 1 month ago (2015-11-18 00:32:02 UTC) #3
Xianzhu
https://codereview.chromium.org/1452313004/diff/1/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp File third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp (right): https://codereview.chromium.org/1452313004/diff/1/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp#newcode154 third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp:154: void PaintLayerClipper::clearClipRectsIncludingDescendants() On 2015/11/18 00:32:02, chrishtr wrote: > It ...
5 years, 1 month ago (2015-11-18 22:38:15 UTC) #5
chrishtr
lgtm
5 years, 1 month ago (2015-11-18 23:07:17 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1452313004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1452313004/40001
5 years, 1 month ago (2015-11-18 23:09:11 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/142891)
5 years, 1 month ago (2015-11-19 02:15:17 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1452313004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1452313004/40001
5 years, 1 month ago (2015-11-19 04:43:48 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 1 month ago (2015-11-19 06:22:05 UTC) #13
commit-bot: I haz the power
5 years, 1 month ago (2015-11-19 06:23:10 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1a67416323f77edc8c06f17151bac351fba69e11
Cr-Commit-Position: refs/heads/master@{#360535}

Powered by Google App Engine
This is Rietveld 408576698