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

Issue 337593002: Remove call to setMayNeedPaintInvalidation in RenderLayer::updateLayerPositionRecursive (Closed)

Created:
6 years, 6 months ago by abarth-chromium
Modified:
6 years, 6 months ago
Reviewers:
esprehn
CC:
blink-layers+watch_chromium.org, blink-reviews, blink-reviews-rendering, dsinclair, eae+blinkwatch, jchaffraix+rendering, Julien - ping for review, leviw+renderwatch, leviw_travelin_and_unemployed, pdr., rune+blink, zoltan1
Project:
blink
Visibility:
Public.

Description

Remove call to setMayNeedPaintInvalidation in RenderLayer::updateLayerPositionRecursive The call to setMayNeedPaintInvalidation was compensating for a bug in RenderBox::clippedOverflowRectForPaintInvalidation. Previously, that code considered only whether the current RenderLayer had visible contents instead of asking whether any descendant was visible. This change will cause us to issue more invalidations in cases where some parts of the subtree are visible, but they'll be the same ones we issue in the normal case when elements are visible. Removing this call will let us remove the RenderGeometryMap in updateLayerPositionsAfterLayout because it's now almost entirely unused. R=esprehn@chromium.org BUG=383636 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176060

Patch Set 1 #

Patch Set 2 : MOre cleanup #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -27 lines) Patch
M LayoutTests/TestExpectations View 1 1 chunk +11 lines, -0 lines 1 comment Download
A LayoutTests/fast/repaint/clipped-overflow-visible-subtree.html View 1 chunk +21 lines, -0 lines 0 comments Download
A LayoutTests/fast/repaint/clipped-overflow-visible-subtree-expected.txt View 1 chunk +19 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderBox.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderLayer.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderLayer.cpp View 1 4 chunks +5 lines, -24 lines 0 comments Download
M Source/core/rendering/RenderLayerModelObject.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
abarth-chromium
6 years, 6 months ago (2014-06-12 20:57:17 UTC) #1
esprehn
lgtm
6 years, 6 months ago (2014-06-12 21:00:34 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/337593002/20001
6 years, 6 months ago (2014-06-12 21:01:26 UTC) #3
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_gpu_triggered_tests on tryserver.chromium.gpu ...
6 years, 6 months ago (2014-06-12 22:36:24 UTC) #4
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-12 22:36:38 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/16788)
6 years, 6 months ago (2014-06-12 22:36:39 UTC) #6
esprehn
The CQ bit was checked by esprehn@chromium.org
6 years, 6 months ago (2014-06-12 23:09:20 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/337593002/20001
6 years, 6 months ago (2014-06-12 23:09:37 UTC) #8
commit-bot: I haz the power
Change committed as 176060
6 years, 6 months ago (2014-06-12 23:43:51 UTC) #9
ojan
Amazing. Can you explain more what the case is where we now do more invalidations? ...
6 years, 6 months ago (2014-06-13 02:07:21 UTC) #10
abarth-chromium
On 2014/06/13 at 02:07:21, ojan wrote: > Amazing. Can you explain more what the case ...
6 years, 6 months ago (2014-06-13 05:47:46 UTC) #11
ojan
On 2014/06/13 05:47:46, abarth wrote: > On 2014/06/13 at 02:07:21, ojan wrote: > > Amazing. ...
6 years, 6 months ago (2014-06-13 05:58:46 UTC) #12
abarth-chromium
6 years, 6 months ago (2014-06-13 06:35:29 UTC) #13
Message was sent while issue was closed.
On 2014/06/13 at 05:58:46, ojan wrote:
> Thanks for the explanation. This is clearly the right trade-off for now, but I
wonder if it's worth putting a FIXME in the appropriate place to avoid doing
invalidations for the non-visible parts of the subtree. As silly as visibility
inheriting is, some very prominent sites make heavy use of this (e.g. gmail).

Sure, adding a FIXME makes sense.  Thanks!

Powered by Google App Engine
This is Rietveld 408576698