| Index: third_party/WebKit/Source/core/paint/PrePaintTreeWalkTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/PrePaintTreeWalkTest.cpp b/third_party/WebKit/Source/core/paint/PrePaintTreeWalkTest.cpp
|
| index 8ac78561ce11f68e0ecaa375269c69c1165f7fa2..5ffe916f7b3eacbc6f8065f1ab3917869a1b6ec9 100644
|
| --- a/third_party/WebKit/Source/core/paint/PrePaintTreeWalkTest.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PrePaintTreeWalkTest.cpp
|
| @@ -261,4 +261,26 @@ TEST_P(PrePaintTreeWalkTest, ClearSubsequenceCachingClipChangePosFixed) {
|
| EXPECT_TRUE(child_paint_layer->NeedsRepaint());
|
| }
|
|
|
| +TEST_P(PrePaintTreeWalkTest, ClipChangeHasRadius) {
|
| + SetBodyInnerHTML(
|
| + "<style>"
|
| + " #target {"
|
| + " position: absolute;"
|
| + " z-index: 0;"
|
| + " overflow: hidden;"
|
| + " width: 50px;"
|
| + " height: 50px;"
|
| + " }"
|
| + "</style>"
|
| + "<div id='target'></div>");
|
| +
|
| + auto* target = GetDocument().GetElementById("target");
|
| + auto* target_object = ToLayoutBoxModelObject(target->GetLayoutObject());
|
| + target->setAttribute(HTMLNames::styleAttr, "border-radius: 5px");
|
| + GetDocument().View()->UpdateAllLifecyclePhasesExceptPaint();
|
| + EXPECT_TRUE(target_object->Layer()->NeedsRepaint());
|
| + // And should not trigger any assert failure.
|
| + GetDocument().View()->UpdateAllLifecyclePhases();
|
| +}
|
| +
|
| } // namespace blink
|
|
|