| Index: third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp
|
| index a59dfd7f14d247d09a4ec8cfe823569b78df22fb..6ab437c8e08209c143276029ff0081767271a465 100644
|
| --- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp
|
| @@ -2931,4 +2931,18 @@ TEST_P(PaintPropertyTreeBuilderTest, DescendantNeedsUpdateAcrossFrames) {
|
| EXPECT_FALSE(innerDivWithTransform->descendantNeedsPaintPropertyUpdate());
|
| }
|
|
|
| +TEST_P(PaintPropertyTreeBuilderTest, UpdatingFrameViewContentClip) {
|
| + setBodyInnerHTML("hello world.");
|
| + EXPECT_EQ(FloatRoundedRect(0, 0, 800, 600), frameContentClip()->clipRect());
|
| + document().view()->resize(800, 599);
|
| + document().view()->updateAllLifecyclePhases();
|
| + EXPECT_EQ(FloatRoundedRect(0, 0, 800, 599), frameContentClip()->clipRect());
|
| + document().view()->resize(800, 600);
|
| + document().view()->updateAllLifecyclePhases();
|
| + EXPECT_EQ(FloatRoundedRect(0, 0, 800, 600), frameContentClip()->clipRect());
|
| + document().view()->resize(5, 5);
|
| + document().view()->updateAllLifecyclePhases();
|
| + EXPECT_EQ(FloatRoundedRect(0, 0, 5, 5), frameContentClip()->clipRect());
|
| +}
|
| +
|
| } // namespace blink
|
|
|