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

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..dc52e82439b663e2e8383bd3170fa0226784d857 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())
@@ -2350,7 +2350,6 @@ bool LayoutBox::mapToVisualRectInAncestorSpaceInternal(
TransformState& transformState,
VisualRectFlags visualRectFlags) const {
inflateVisualRectForFilter(transformState);
-
pdr. 2017/03/28 03:30:20 Nit: remove this
if (ancestor == this)
return true;

Powered by Google App Engine
This is Rietveld 408576698