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 f1a02b92ae994f4d8b3b39d222de81e8fa5572c3..36b07e7fad47ae3f937998d0f4516f2553ed5626 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp |
@@ -1112,21 +1112,6 @@ bool LayoutObject::compositedScrollsWithRespectTo( |
this != &paintInvalidationContainer; |
} |
-IntSize LayoutObject::scrollAdjustmentForPaintInvalidation( |
- const LayoutBoxModelObject& paintInvalidationContainer) const { |
- // Non-composited scrolling should be included in the bounds of scrolled |
- // items. Since mapToVisualRectInAncestorSpace does not include scrolling of |
- // the ancestor, we need to add it back in after. |
- if (paintInvalidationContainer.isBox() && |
- !paintInvalidationContainer.usesCompositedScrolling() && |
- this != &paintInvalidationContainer) { |
- const LayoutBox* box = toLayoutBox(&paintInvalidationContainer); |
- if (box->hasOverflowClip()) |
- return -box->scrolledContentOffset(); |
- } |
- return IntSize(); |
-} |
- |
LayoutRect LayoutObject::invalidatePaintRectangle( |
const LayoutRect& dirtyRect, |
DisplayItemClient* displayItemClient) const { |