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

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

Issue 2446433002: Cleanups to remove an unnecessary parameter in LayoutBox::mapScrollingContentsRectToBoxSpace. (Closed)
Patch Set: none Created 4 years, 2 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 | « third_party/WebKit/Source/core/layout/LayoutInline.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index 0ae7cb6b3efb9b4e07af42ed1c3f3672c0230d8b..78dbeff16d237f07aeff247b99dc863cc691c6d4 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -1300,10 +1300,8 @@ bool LayoutObject::mapToVisualRectInAncestorSpace(
if (!isSVG())
parentBox->flipForWritingMode(rect);
- if (!parentBox->mapScrollingContentsRectToBoxSpace(
- rect, parent == ancestor ? ApplyNonScrollOverflowClip
- : ApplyOverflowClip,
- visualRectFlags))
+ if (parent != ancestor &&
+ !parentBox->mapScrollingContentsRectToBoxSpace(rect, visualRectFlags))
return false;
}
return parent->mapToVisualRectInAncestorSpace(ancestor, rect,
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutInline.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698