| 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 9fdb15784eac0ec38aeca66984bdacdcc310d5f1..6f3548afb875f1d328e8d5e7af6c72c89d9b47cd 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"
|
|
|
| @@ -751,4 +752,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
|
|
|