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

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

Issue 1540443003: Fix LayoutObject::mapToVisibleRectInContainerSpace() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 38409e27e12b9f4d2d0da138e835827dc7cfb289..aa10c8a6d85319c3b077bc8e5222d527529438ed 100644
--- a/third_party/WebKit/Source/core/layout/LayoutInline.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutInline.cpp
@@ -1104,11 +1104,7 @@ void LayoutInline::mapToVisibleRectInContainerSpace(const LayoutBoxModelObject*
// its controlClipRect will be wrong. For overflow clip we use the values cached by the layer.
rect.setLocation(topLeft);
if (o->hasOverflowClip()) {
- LayoutBox* containerBox = toLayoutBox(o);
- if (o == paintInvalidationContainer)
- containerBox->applyCachedScrollOffsetForPaintInvalidation(rect);
- else
- containerBox->applyCachedClipAndScrollOffsetForPaintInvalidation(rect);
+ toLayoutBox(o)->applyCachedClipAndScrollOffsetForPaintInvalidationIfNeeded(paintInvalidationContainer, rect);
if (rect.isEmpty())
return;
}

Powered by Google App Engine
This is Rietveld 408576698