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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h

Issue 2019583002: Don't include scroll offset in offsetFromLayoutObject for scrolling contents layers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/LayoutBoxModelObject.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h
index cffef09efb130e30eaa221b0988326dc2f01cafb..20f3c560f6f7d8b8b40a73764bb12272a7c69def 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h
@@ -290,7 +290,9 @@ public:
// Indicate that the contents of this layoutObject need to be repainted.
// This only has an effect if compositing is being used.
// The rect is in the physical coordinate space of this layout object.
- void setBackingNeedsPaintInvalidationInRect(const LayoutRect&, PaintInvalidationReason, const LayoutObject&) const;
+ // If |scrollingContentsOnly| is true, only invalidates scrolling content layers.
+ // TODO(chrishtr): we should be able to skip scrolling content layers if |scrollingContentsOnly| is false.
+ void setBackingNeedsPaintInvalidationInRect(const LayoutRect&, PaintInvalidationReason, const LayoutObject&, bool scrollingContentsOnly) const;
void invalidateDisplayItemClientOnBacking(const DisplayItemClient&, PaintInvalidationReason) const;

Powered by Google App Engine
This is Rietveld 408576698