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

Issue 2576943002: RootLayerScrolling: Fix RootScrollerTest. (Closed)

Created:
4 years ago by szager1
Modified:
4 years ago
Reviewers:
bokan, skobes
CC:
chromium-reviews, blink-reviews, kinuko+watch
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

RootLayerScrolling: Fix RootScrollerTest. When RLS is enabled, the compositor's root content layer is pointless, and it doesn't get its setMasksToBounds flag set based on whether it contains the root scroller. Instead, we should ensure that the LayoutView's scrolling layer gets the setMasksToBounds flag set correctly. This patch adds some spacers to make the LayoutView overflow, to ensure that it has a scrolling layer we can test. BUG=490942 R=bokan@chromium.org,skobes@chromium.org Committed: https://crrev.com/fcf5015deccb246d2dca3c8037db8b6c8a234547 Cr-Commit-Position: refs/heads/master@{#438727}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -23 lines) Patch
M third_party/WebKit/Source/web/tests/RootScrollerTest.cpp View 12 chunks +35 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/web/tests/data/root-scroller-child.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/data/root-scroller-iframe.html View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
szager1
4 years ago (2016-12-15 01:37:56 UTC) #1
skobes
lgtm
4 years ago (2016-12-15 01:59:28 UTC) #2
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/2576943002/1
4 years ago (2016-12-15 02:04:25 UTC) #4
commit-bot: I haz the power
Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/139146)
4 years ago (2016-12-15 02:11:56 UTC) #6
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/2576943002/1
4 years ago (2016-12-15 02:55:47 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-15 03:56:44 UTC) #11
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/fcf5015deccb246d2dca3c8037db8b6c8a234547 Cr-Commit-Position: refs/heads/master@{#438727}
4 years ago (2016-12-15 04:00:53 UTC) #13
bokan
what problem was this causing? What happens in real pages where there is no scrolling ...
4 years ago (2016-12-15 15:28:20 UTC) #14
szager1
On 2016/12/15 15:28:20, bokan wrote: > what problem was this causing? What happens in real ...
4 years ago (2016-12-15 15:50:49 UTC) #15
bokan
On 2016/12/15 15:50:49, szager1 wrote: > On 2016/12/15 15:28:20, bokan wrote: > > what problem ...
4 years ago (2016-12-15 15:51:28 UTC) #16
szager1
4 years ago (2016-12-16 00:52:16 UTC) #17
Message was sent while issue was closed.
On 2016/12/15 15:51:28, bokan wrote:
> On 2016/12/15 15:50:49, szager1 wrote:
> > On 2016/12/15 15:28:20, bokan wrote:
> > > what problem was this causing? What happens in real pages where there is
no
> > > scrolling in the LayoutView?
> > 
> > The purpose of this patch is just to get the unit tests passing with root
> layer
> > scrolling enabled; it only touches test code.
> 
> Right, I meant why were the tests failing?

They were failing because of this line of code:

https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/layout/co...

I could have just disabled the test assertion for that line, but I thought it
would be useful to test that setMasksToBounds is applied correctly to the
LayoutView's scrolling layer:

https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/layout/co...

I had to add spacers to the html to force root-layer scrolling, because without
it, the LayoutView's CompositedLayerMapping would not have a scrollLayer.

Powered by Google App Engine
This is Rietveld 408576698