Index: third_party/WebKit/Source/core/paint/PaintLayerTest.cpp |
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerTest.cpp b/third_party/WebKit/Source/core/paint/PaintLayerTest.cpp |
index aa3d293a52bb1e73c5251e9081c6f6abcf280cb4..cc0840951200ca5aa445f08b7997aaa6a021be85 100644 |
--- a/third_party/WebKit/Source/core/paint/PaintLayerTest.cpp |
+++ b/third_party/WebKit/Source/core/paint/PaintLayerTest.cpp |
@@ -58,6 +58,26 @@ TEST_P(PaintLayerTest, CompositedBoundsAbsPosGrandchild) { |
parentLayer->boundingBoxForCompositing()); |
} |
+TEST_P(PaintLayerTest, CompositedBoundsTransformedChild) { |
+ // TODO(chrishtr): fix this test for SPv2 |
+ if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) |
+ return; |
+ |
+ setBodyInnerHTML( |
+ "<div id=parent style='overflow: scroll; will-change: transform'>" |
+ " <div class='target'" |
+ " style='position: relative; transform: skew(-15deg);'>" |
+ " </div>" |
+ " <div style='width: 1000px; height: 500px; background: lightgray'>" |
+ " </div>" |
+ "</div>"); |
+ |
+ PaintLayer* parentLayer = |
+ toLayoutBoxModelObject(getLayoutObjectByElementId("parent"))->layer(); |
+ EXPECT_EQ(LayoutRect(0, 0, 784, 500), |
+ parentLayer->boundingBoxForCompositing()); |
+} |
+ |
TEST_P(PaintLayerTest, PaintingExtentReflection) { |
setBodyInnerHTML( |
"<div id='target' style='background-color: blue; position: absolute;" |