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

Issue 19019004: Set root clip layer not to maskToBounds. (Closed)

Created:
7 years, 5 months ago by aelias_OOO_until_Jul13
Modified:
7 years, 5 months ago
Reviewers:
jamesr, enne (OOO)
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, joth, mkosiba (inactive), trchen1, benm (inactive)
Visibility:
Public.

Description

Set root clip layer not to maskToBounds. The root layer doesn't need to clip because it's drawn to a correctly sized surface. The only reason it might be needed is to avoid overlapping the scrollbars, but that's already dealt with by tree order. The root clip causes a lot of bugs in dynamic viewport scenarios on Android, and it's not needed elsewhere, so disable masksToBounds on it. Even though it's now a no-op, we leave it in the tree structure for consistency and because the clip bounds still contain useful information. Also rename "clip layer" to "container layer" since it now doesn't necessarily clip. NOTRY=true BUG=259141 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=154172

Patch Set 1 #

Total comments: 2

Patch Set 2 : Change to isMainFrame() #

Patch Set 3 : Rename to containerLayer and add NeedsRebaselines #

Patch Set 4 : Change Slow test to NeedsManualRebaseline #

Patch Set 5 : Another ClipLayer rename #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -36 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 2 chunks +7 lines, -1 line 0 comments Download
M Source/core/rendering/RenderLayerCompositor.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderLayerCompositor.cpp View 1 2 3 10 chunks +16 lines, -15 lines 0 comments Download
M Source/web/PinchViewports.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/web/PinchViewports.cpp View 1 2 5 chunks +18 lines, -15 lines 0 comments Download
M public/platform/WebLayerTreeView.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
aelias_OOO_until_Jul13
Hi James, I realized WebView also should not be using the root clip layer, and ...
7 years, 5 months ago (2013-07-11 00:40:45 UTC) #1
aelias_OOO_until_Jul13
Adding enne@ to review list since Enne has been more involved in layer tree structure ...
7 years, 5 months ago (2013-07-11 00:47:22 UTC) #2
trchen
https://codereview.chromium.org/19019004/diff/1/Source/core/rendering/RenderLayerCompositor.cpp File Source/core/rendering/RenderLayerCompositor.cpp (right): https://codereview.chromium.org/19019004/diff/1/Source/core/rendering/RenderLayerCompositor.cpp#newcode2400 Source/core/rendering/RenderLayerCompositor.cpp:2400: if (expectedAttachment != RootLayerAttachedViaChromeClient) if (!isMainFrame()) sounds more straightforward ...
7 years, 5 months ago (2013-07-11 01:11:15 UTC) #3
aelias_OOO_until_Jul13
https://codereview.chromium.org/19019004/diff/1/Source/core/rendering/RenderLayerCompositor.cpp File Source/core/rendering/RenderLayerCompositor.cpp (right): https://codereview.chromium.org/19019004/diff/1/Source/core/rendering/RenderLayerCompositor.cpp#newcode2400 Source/core/rendering/RenderLayerCompositor.cpp:2400: if (expectedAttachment != RootLayerAttachedViaChromeClient) On 2013/07/11 01:11:16, trchen wrote: ...
7 years, 5 months ago (2013-07-11 03:46:17 UTC) #4
enne (OOO)
> Even though it's now a no-op, we leave it in the tree structure > ...
7 years, 5 months ago (2013-07-11 17:22:10 UTC) #5
enne (OOO)
On 2013/07/11 17:22:10, enne wrote: > > Even though it's now a no-op, we leave ...
7 years, 5 months ago (2013-07-11 17:26:33 UTC) #6
aelias_OOO_until_Jul13
OK, I renamed clipLayer to containerLayer to clarify that it may not actually clip. I ...
7 years, 5 months ago (2013-07-12 03:40:47 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aelias@chromium.org/19019004/21001
7 years, 5 months ago (2013-07-13 23:32:30 UTC) #8
commit-bot: I haz the power
7 years, 5 months ago (2013-07-13 23:32:45 UTC) #9
Message was sent while issue was closed.
Change committed as 154172

Powered by Google App Engine
This is Rietveld 408576698