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

Issue 131543013: Update scroll parent correctly for squashing layers. (Closed)

Created:
6 years, 10 months ago by Ian Vollick
Modified:
6 years, 9 months ago
CC:
blink-reviews, jamesr, krit, bemjb+rendering_chromium.org, dsinclair, zoltan1, eae+blinkwatch, leviw+renderwatch, jbroman, danakj, Rik, jchaffraix+rendering, Stephen Chennney, rwlbuis, hartmanng
Visibility:
Public.

Description

Update scroll parent correctly for squashing layers. Currently, we only set a scroll parent for "localRootForOwningLayer".I.e., the highest GraphicsLayer in the CLM-managed hierarchy, excluding the squashing containment layer. But for "scroll buddies", we need the scroll child to be the very top of the hierarchy. We also need to ensure that scroll buddies are not prevented from squashing together because of the additional "I've got a scroll parent" compositing reason. This cl also disables chicken-egg asserts that trip w/ universal accelerated overflow scroll and changes how we compute composited bounds for squashed layers (we currently pull the bounds from the clipper, but it picks the wrong "clipping root" in this case). With this CL, universal accelerated overflow scrolling and squashing work nearly perfectly modulo known hit testing bugs (which can prevent touch scrolling) and repaint issues (separate issue reported here https://code.google.com/p/chromium/issues/detail?id=351790). BUG=328156 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169776

Patch Set 1 #

Total comments: 1

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : don't review. wip. #

Patch Set 5 : Now with working LayoutTests (thanks to hartmanng for help with the repaint workaround). #

Total comments: 6

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : . #

Patch Set 9 : rebase #

Total comments: 4

Patch Set 10 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+240 lines, -6 lines) Patch
A LayoutTests/compositing/content-changed-chicken-egg.html View 1 2 3 4 5 6 7 1 chunk +44 lines, -0 lines 0 comments Download
A LayoutTests/compositing/content-changed-chicken-egg-expected.html View 1 2 3 4 5 6 7 1 chunk +42 lines, -0 lines 0 comments Download
A LayoutTests/compositing/squashing/universal-accelerated-overflow-scrolling.html View 1 2 3 4 1 chunk +78 lines, -0 lines 0 comments Download
A LayoutTests/compositing/squashing/universal-accelerated-overflow-scrolling-expected.html View 1 2 3 1 chunk +63 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderLayer.cpp View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderLayerClipper.cpp View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M Source/core/rendering/compositing/CompositedLayerMapping.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -1 line 0 comments Download
M Source/platform/graphics/CompositingReasons.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 25 (0 generated)
Ian Vollick
6 years, 10 months ago (2014-02-10 15:50:22 UTC) #1
shawnsingh
Just wondering, does this patch have any real effect on squashing by itself? Maybe we ...
6 years, 10 months ago (2014-02-10 20:28:52 UTC) #2
shawnsingh
On 2014/02/10 20:28:52, shawnsingh wrote: > Also we should wait until Adam's layout tests land ...
6 years, 10 months ago (2014-02-10 20:29:39 UTC) #3
Ian Vollick
I think this is ready for review. PTAL!
6 years, 9 months ago (2014-03-12 18:12:16 UTC) #4
ojan
https://codereview.chromium.org/131543013/diff/160001/Source/core/rendering/RenderLayer.cpp File Source/core/rendering/RenderLayer.cpp (right): https://codereview.chromium.org/131543013/diff/160001/Source/core/rendering/RenderLayer.cpp#newcode196 Source/core/rendering/RenderLayer.cpp:196: // updateLayerCompositingState will query compositingReasons for accelerated overflow scrolling. ...
6 years, 9 months ago (2014-03-12 18:30:24 UTC) #5
abarth-chromium
https://codereview.chromium.org/131543013/diff/160001/Source/core/rendering/RenderLayer.cpp File Source/core/rendering/RenderLayer.cpp (right): https://codereview.chromium.org/131543013/diff/160001/Source/core/rendering/RenderLayer.cpp#newcode197 Source/core/rendering/RenderLayer.cpp:197: DisableCompositingQueryAsserts disabler; It's too bad that we're regressing this ...
6 years, 9 months ago (2014-03-12 18:45:40 UTC) #6
Ian Vollick
https://codereview.chromium.org/131543013/diff/160001/Source/core/rendering/RenderLayer.cpp File Source/core/rendering/RenderLayer.cpp (right): https://codereview.chromium.org/131543013/diff/160001/Source/core/rendering/RenderLayer.cpp#newcode196 Source/core/rendering/RenderLayer.cpp:196: // updateLayerCompositingState will query compositingReasons for accelerated overflow scrolling. ...
6 years, 9 months ago (2014-03-12 20:03:31 UTC) #7
abarth-chromium
On 2014/03/12 20:03:31, Ian Vollick wrote: > https://codereview.chromium.org/131543013/diff/160001/Source/core/rendering/RenderLayer.cpp > File Source/core/rendering/RenderLayer.cpp (right): > > https://codereview.chromium.org/131543013/diff/160001/Source/core/rendering/RenderLayer.cpp#newcode196 ...
6 years, 9 months ago (2014-03-12 21:20:13 UTC) #8
Ian Vollick
On 2014/03/12 21:20:13, abarth wrote: > On 2014/03/12 20:03:31, Ian Vollick wrote: > > > ...
6 years, 9 months ago (2014-03-13 03:14:06 UTC) #9
Ian Vollick
On 2014/03/13 03:14:06, Ian Vollick wrote: > On 2014/03/12 21:20:13, abarth wrote: > > On ...
6 years, 9 months ago (2014-03-14 19:28:23 UTC) #10
Ian Vollick
On 2014/03/14 19:28:23, Ian Vollick wrote: > On 2014/03/13 03:14:06, Ian Vollick wrote: > > ...
6 years, 9 months ago (2014-03-21 14:28:21 UTC) #11
abarth-chromium
lgtm https://codereview.chromium.org/131543013/diff/230001/Source/core/rendering/compositing/CompositedLayerMapping.cpp File Source/core/rendering/compositing/CompositedLayerMapping.cpp (right): https://codereview.chromium.org/131543013/diff/230001/Source/core/rendering/compositing/CompositedLayerMapping.cpp#newcode469 Source/core/rendering/compositing/CompositedLayerMapping.cpp:469: // See http://crbug.com/351851 Is this comments still accurate? ...
6 years, 9 months ago (2014-03-21 15:49:50 UTC) #12
Ian Vollick
https://codereview.chromium.org/131543013/diff/230001/Source/core/rendering/compositing/CompositedLayerMapping.cpp File Source/core/rendering/compositing/CompositedLayerMapping.cpp (right): https://codereview.chromium.org/131543013/diff/230001/Source/core/rendering/compositing/CompositedLayerMapping.cpp#newcode469 Source/core/rendering/compositing/CompositedLayerMapping.cpp:469: // See http://crbug.com/351851 On 2014/03/21 15:49:51, abarth wrote: > ...
6 years, 9 months ago (2014-03-21 18:23:24 UTC) #13
Ian Vollick
The CQ bit was checked by vollick@chromium.org
6 years, 9 months ago (2014-03-21 18:23:33 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vollick@chromium.org/131543013/240001
6 years, 9 months ago (2014-03-21 18:23:36 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-21 18:25:26 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on win_blink_rel
6 years, 9 months ago (2014-03-21 18:25:27 UTC) #17
pdr.
On 2014/03/21 18:25:27, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 9 months ago (2014-03-21 18:26:07 UTC) #18
pdr.
The CQ bit was checked by pdr@chromium.org
6 years, 9 months ago (2014-03-21 18:26:11 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vollick@chromium.org/131543013/240001
6 years, 9 months ago (2014-03-21 18:26:15 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-21 19:24:45 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on win_blink_rel
6 years, 9 months ago (2014-03-21 19:24:45 UTC) #22
Ian Vollick
The CQ bit was checked by vollick@chromium.org
6 years, 9 months ago (2014-03-21 20:50:19 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vollick@chromium.org/131543013/240001
6 years, 9 months ago (2014-03-21 20:50:21 UTC) #24
commit-bot: I haz the power
6 years, 9 months ago (2014-03-22 04:11:22 UTC) #25
Message was sent while issue was closed.
Change committed as 169776

Powered by Google App Engine
This is Rietveld 408576698