| Index: third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| index 9b41ff4054dd1942d852aa9fac0d1914cefa14c2..881e0bfbaaa35e0dbc8404f9d9b7302bc84e6217 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| @@ -2435,8 +2435,10 @@ LayoutRect LayoutBox::LocalVisualRect() const {
|
| if (Style()->Visibility() != EVisibility::kVisible)
|
| return LayoutRect();
|
|
|
| - if (HasMask() && !RuntimeEnabledFeatures::slimmingPaintV2Enabled())
|
| + if (HasMask() && !ShouldClipOverflow() &&
|
| + !RuntimeEnabledFeatures::slimmingPaintV2Enabled())
|
| return LayoutRect(Layer()->BoxForFilterOrMask());
|
| +
|
| return SelfVisualOverflowRect();
|
| }
|
|
|
|
|