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

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

Issue 1934833002: Ensure filter and reflection outsets are applied on paint invalidation rect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 c4ec9f95d4a7d9131a836833f65961e607d049a2..b61c6de5e54c8e577a493794de086bf5a6bdff48 100644
--- a/third_party/WebKit/Source/core/layout/LayoutInline.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutInline.cpp
@@ -1083,8 +1083,8 @@ bool LayoutInline::mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* an
if (ancestor == this)
return true;
- bool ancestorSkipped;
- LayoutObject* container = this->container(ancestor, &ancestorSkipped);
+ LayoutObject* container = this->container();
+ ASSERT(container == parent());
if (!container)
return true;
@@ -1105,13 +1105,6 @@ bool LayoutInline::mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* an
if (container->isBox() && !toLayoutBox(container)->mapScrollingContentsRectToBoxSpace(rect, container == ancestor ? ApplyNonScrollOverflowClip : ApplyOverflowClip, visualRectFlags))
return false;
- if (ancestorSkipped) {
- // If the paintInvalidationContainer is below o, then we need to map the rect into paintInvalidationContainer's coordinates.
- LayoutSize containerOffset = ancestor->offsetFromAncestorContainer(container);
- rect.move(-containerOffset);
- return true;
- }
-
return container->mapToVisualRectInAncestorSpace(ancestor, rect, visualRectFlags);
}

Powered by Google App Engine
This is Rietveld 408576698