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

Issue 2537653002: Invalidate previousLocationInBacking in LayoutObject::clearPreviousVisualRects() (Closed)

Created:
4 years ago by Xianzhu
Modified:
4 years ago
Reviewers:
chrishtr
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, 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

Invalidate previousLocationInBacking in LayoutObject::clearPreviousVisualRects() clearPreviousVisualRects() is called when the object's previous visual rects become invalid (e.g. when the object becomes composited). We should call setMayNeedPaintInvalidationSubtree to ensure paint invalidation checking of subtree which would be triggered by changed location if we had valid previous location. BUG=666267 TEST=paint/invalidation/compositing/become-composited-zero-offset.html Committed: https://crrev.com/b4a81bdbf064377ffee45f75b8ee79eb260d9942 Cr-Commit-Position: refs/heads/master@{#434894}

Patch Set 1 #

Total comments: 4

Patch Set 2 : - #

Patch Set 3 : setMayNeedPaintInvalidationSubtree #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -1 line) Patch
A third_party/WebKit/LayoutTests/paint/invalidation/compositing/become-composited-zero-offset.html View 1 chunk +12 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/paint/invalidation/compositing/become-composited-zero-offset-expected.html View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 2 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 22 (13 generated)
Xianzhu
Actually this is not a new bug, but happened to regress for the bug. Given ...
4 years ago (2016-11-29 00:17:35 UTC) #4
chrishtr
https://codereview.chromium.org/2537653002/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/2537653002/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode1266 third_party/WebKit/Source/core/layout/LayoutObject.cpp:1266: // After clearing ("invalidating" the visual rects, mark this ...
4 years ago (2016-11-29 00:57:59 UTC) #5
Xianzhu
https://codereview.chromium.org/2537653002/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/2537653002/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode1266 third_party/WebKit/Source/core/layout/LayoutObject.cpp:1266: // After clearing ("invalidating" the visual rects, mark this ...
4 years ago (2016-11-29 01:43:27 UTC) #7
chrishtr
On 2016/11/29 at 01:43:27, wangxianzhu wrote: > https://codereview.chromium.org/2537653002/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp > File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): > > https://codereview.chromium.org/2537653002/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode1266 ...
4 years ago (2016-11-29 01:51:44 UTC) #9
Xianzhu
On 2016/11/29 01:51:44, chrishtr wrote: > > I see. Can you just call setMayNeedPaintInvalidationSubtree()? Good ...
4 years ago (2016-11-29 02:10:54 UTC) #11
chrishtr
lgtm
4 years ago (2016-11-29 02:18:01 UTC) #14
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/2537653002/40001
4 years ago (2016-11-29 04:36:38 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-11-29 04:40:49 UTC) #20
commit-bot: I haz the power
4 years ago (2016-11-29 04:42:48 UTC) #22
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/b4a81bdbf064377ffee45f75b8ee79eb260d9942
Cr-Commit-Position: refs/heads/master@{#434894}

Powered by Google App Engine
This is Rietveld 408576698