Commit 1edd6bef authored by szager's avatar szager Committed by Commit bot

RootLayerScrolling: fix PaintLayerClipperTest.

Configure the ClipRectsContext for the root layer to treat it as a
composited scrolling layer by not applying an overflow clip.

BUG=490942
R=chrishtr@chromium.org,skobes@chromium.org
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2

Review-Url: https://codereview.chromium.org/2576883002
Cr-Commit-Position: refs/heads/master@{#438677}
parent b41d221c
......@@ -27,6 +27,10 @@ TEST_F(PaintLayerClipperTest, LayoutSVGRoot) {
PaintLayer* targetPaintLayer =
toLayoutBoxModelObject(target->layoutObject())->layer();
ClipRectsContext context(document().layoutView()->layer(), UncachedClipRects);
// When RLS is enabled, the LayoutView will have a composited scrolling layer,
// so don't apply an overflow clip.
if (RuntimeEnabledFeatures::rootLayerScrollingEnabled())
context.setIgnoreOverflowClip();
LayoutRect layerBounds;
ClipRect backgroundRect, foregroundRect;
targetPaintLayer->clipper().calculateRects(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment