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

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

Issue 2780593002: Apply control clips in LayoutBox::clippingRect() (Closed)
Patch Set: none Created 3 years, 9 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
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 d6c9602a1ba6b6bf14d1b285080bcd342b13704e..eba60421ca7d8eb0768fca646f54c024499c0d8c 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -1150,7 +1150,7 @@ IntSize LayoutBox::scrolledContentOffset() const {
LayoutRect LayoutBox::clippingRect() const {
LayoutRect result = LayoutRect(LayoutRect::infiniteIntRect());
- if (hasOverflowClip() || style()->containsPaint())
+ if (shouldClipOverflow())
result = overflowClipRect(LayoutPoint());
if (hasClip())

Powered by Google App Engine
This is Rietveld 408576698