| Index: third_party/WebKit/Source/core/paint/PaintPropertyTreeUpdateTests.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/PaintPropertyTreeUpdateTests.cpp b/third_party/WebKit/Source/core/paint/PaintPropertyTreeUpdateTests.cpp
|
| index 426993971f6277384196298a4b72700578080389..71f01e55de31a29126108a0cf5acc375fbb726d5 100644
|
| --- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeUpdateTests.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeUpdateTests.cpp
|
| @@ -3,6 +3,7 @@
|
| // found in the LICENSE file.
|
|
|
| #include "core/html/HTMLIFrameElement.h"
|
| +#include "core/html/HTMLSelectElement.h"
|
| #include "core/paint/PaintPropertyTreeBuilderTest.h"
|
| #include "core/paint/PaintPropertyTreePrinter.h"
|
|
|
| @@ -752,4 +753,20 @@ TEST_P(PaintPropertyTreeUpdateTest, Preserve3DChange) {
|
| EXPECT_FALSE(transform->FlattensInheritedTransform());
|
| }
|
|
|
| +TEST_P(PaintPropertyTreeUpdateTest, MenuListControlClipChange) {
|
| + SetBodyInnerHTML(
|
| + "<select id='select' style='white-space: normal'>"
|
| + " <option></option>"
|
| + " <option>bar</option>"
|
| + "</select>");
|
| +
|
| + auto* select = GetLayoutObjectByElementId("select");
|
| + EXPECT_NE(nullptr, select->PaintProperties()->OverflowClip());
|
| +
|
| + // Should not assert in FindPropertiesNeedingUpdate.
|
| + toHTMLSelectElement(select->GetNode())->setSelectedIndex(1);
|
| + GetDocument().View()->UpdateAllLifecyclePhases();
|
| + EXPECT_NE(nullptr, select->PaintProperties()->OverflowClip());
|
| +}
|
| +
|
| } // namespace blink
|
|
|