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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutInline.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
Index: third_party/WebKit/Source/core/layout/LayoutInline.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutInline.cpp b/third_party/WebKit/Source/core/layout/LayoutInline.cpp
index 19ac47476b6db7945f4398c23c95b8de0474d753..b8a5ed449df5133bab6be3ce2edbed67f2478998 100644
--- a/third_party/WebKit/Source/core/layout/LayoutInline.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutInline.cpp
@@ -1213,11 +1213,8 @@ bool LayoutInline::mapToVisualRectInAncestorSpace(
LayoutBox* containerBox =
container->isBox() ? toLayoutBox(container) : nullptr;
- if (containerBox &&
- !containerBox->mapScrollingContentsRectToBoxSpace(
- rect, container == ancestor ? ApplyNonScrollOverflowClip
- : ApplyOverflowClip,
- visualRectFlags))
+ if (containerBox && container != ancestor &&
+ !containerBox->mapScrollingContentsRectToBoxSpace(rect, visualRectFlags))
return false;
// TODO(wkorman): Generalize Ruby specialization and/or document more clearly.
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698