Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBox.cpp

Issue 2826273005: Don't include descendants into LocalVisualRect if a box has both mask and overflow clip (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBoxTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBoxTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698