| 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 91bf16932f3e2fc71adcff6e9740d33c7066a9e3..4bd7a6dc5be2de4d405d04501d540134de615b0e 100644
|
| --- a/third_party/WebKit/Source/core/paint/PaintLayerTest.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PaintLayerTest.cpp
|
| @@ -74,6 +74,15 @@ TEST_P(PaintLayerTest, CompositedBoundsTransformedChild) {
|
| parentLayer->boundingBoxForCompositing());
|
| }
|
|
|
| +TEST_P(PaintLayerTest, RootLayerCompositedBounds) {
|
| + setBodyInnerHTML(
|
| + "<style> body { width: 1000px; height: 1000px; margin: 0 } </style>");
|
| + EXPECT_EQ(RuntimeEnabledFeatures::rootLayerScrollingEnabled()
|
| + ? LayoutRect(0, 0, 800, 600)
|
| + : LayoutRect(0, 0, 1000, 1000),
|
| + layoutView().layer()->boundingBoxForCompositing());
|
| +}
|
| +
|
| TEST_P(PaintLayerTest, PaintingExtentReflection) {
|
| setBodyInnerHTML(
|
| "<div id='target' style='background-color: blue; position: absolute;"
|
|
|