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

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

Issue 2761673005: Optimize scroll adjustment for paint invalidation
Patch Set: - Created 3 years, 9 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/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 {
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.h ('k') | third_party/WebKit/Source/core/layout/PaintInvalidationState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698