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

Issue 548523005: Clip incremental invalidation rects for RenderBox (Closed)

Created:
6 years, 3 months ago by Xianzhu
Modified:
6 years, 3 months ago
CC:
blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr., rune+blink, zoltan1
Project:
blink
Visibility:
Public.

Description

Clip incremental invalidation rects for RenderBox RenderBox::incrementallyInvalidatePaint invalidates according to border-box delta, not considering the bounds. If the bounds are clipped by ancestor clipping, the incrementally invalidated rect may exceed the ancestor clipping. Clip the incremental invalidation rects by oldBounds and newBounds to avoid invalidation on unrelated areas. BUG=411420 TEST=fast/repaint/resize-with-border-clipped.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182081

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 4

Patch Set 3 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -4 lines) Patch
A LayoutTests/fast/repaint/resize-with-border-clipped.html View 1 chunk +33 lines, -0 lines 0 comments Download
A + LayoutTests/fast/repaint/resize-with-border-clipped-expected.txt View 1 chunk +4 lines, -1 line 0 comments Download
M Source/core/rendering/RenderBox.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderBox.cpp View 1 2 3 chunks +21 lines, -3 lines 2 comments Download

Messages

Total messages: 15 (3 generated)
Xianzhu
6 years, 3 months ago (2014-09-09 16:18:10 UTC) #2
Xianzhu
ping...
6 years, 3 months ago (2014-09-10 17:20:09 UTC) #3
Xianzhu
On 2014/09/10 17:20:09, Xianzhu wrote: > ping... ping...
6 years, 3 months ago (2014-09-11 21:29:49 UTC) #4
Xianzhu
ping...
6 years, 3 months ago (2014-09-15 16:47:02 UTC) #5
dsinclair
https://codereview.chromium.org/548523005/diff/20001/Source/core/rendering/RenderBox.cpp File Source/core/rendering/RenderBox.cpp (right): https://codereview.chromium.org/548523005/diff/20001/Source/core/rendering/RenderBox.cpp#newcode4157 Source/core/rendering/RenderBox.cpp:4157: invalidatePaintUsingContainer(&paintInvalidationContainer, rectClippedByNewBounds, InvalidationIncremental); This maybe a bit easier to ...
6 years, 3 months ago (2014-09-16 15:24:01 UTC) #7
Xianzhu
https://codereview.chromium.org/548523005/diff/20001/Source/core/rendering/RenderBox.cpp File Source/core/rendering/RenderBox.cpp (right): https://codereview.chromium.org/548523005/diff/20001/Source/core/rendering/RenderBox.cpp#newcode4157 Source/core/rendering/RenderBox.cpp:4157: invalidatePaintUsingContainer(&paintInvalidationContainer, rectClippedByNewBounds, InvalidationIncremental); Good idea. Done.
6 years, 3 months ago (2014-09-16 15:53:27 UTC) #8
dsinclair
lgtm
6 years, 3 months ago (2014-09-16 17:30:38 UTC) #9
Julien - ping for review
lgtm. Let's add some comment in the description that you are concerned about the *ancestors' ...
6 years, 3 months ago (2014-09-16 18:22:53 UTC) #10
Xianzhu
On 2014/09/16 18:22:53, Julien Chaffraix - PST wrote: > lgtm. > > Let's add some ...
6 years, 3 months ago (2014-09-16 18:36:13 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/548523005/40001
6 years, 3 months ago (2014-09-16 18:37:32 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 182081
6 years, 3 months ago (2014-09-16 18:42:37 UTC) #14
Xianzhu
5 years, 10 months ago (2015-02-04 23:39:25 UTC) #15
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/899813004/ by wangxianzhu@chromium.org.

The reason for reverting is: Haven't looked into the issue deeply, but in the
future we won't care about the invalidation rects, so we can just revert this
kind of optimizations.

BUG=453586.

Powered by Google App Engine
This is Rietveld 408576698