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

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

Issue 2203123004: Don't adjust for scrolling of the ancestor, rather than un-adjusting for it later. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: none Created 4 years, 4 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.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.h b/third_party/WebKit/Source/core/layout/LayoutObject.h
index 7a88a69240315972c9088971c8606a36422c663f..5a0c7c7ae1fd8ea6cb7c8a1f252cd63be07fc73f 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h
@@ -1142,9 +1142,9 @@ public:
// Given a rect in the object's coordinate space, mutates the rect into one representing the size of its visual painted
// output as if |ancestor| was the root of the page: the rect is modified by any intervening clips, transforms
- // and scrolls between |this| and |ancestor|, but not any above |ancestor|.
+ // and scrolls between |this| and |ancestor| (not inclusive of |ancestor|), but not any above |ancestor|.
// The output is in the physical, painted coordinate pixel space of |ancestor|.
- // Overflow clipping is *not* applied for |ancestor| itself if |ancestor| scrolls overflow.
+ // Overflow clipping and scrolling is *not* applied for |ancestor| itself if |ancestor| scrolls overflow.
// The output rect is suitable for purposes such as paint invalidation.
//
// If visualRectFlags has the EdgeInclusive bit set, clipping operations will use
@@ -1412,6 +1412,7 @@ public:
void clearChildNeedsOverflowRecalcAfterStyleChange() { m_bitfields.setChildNeedsOverflowRecalcAfterStyleChange(false); }
bool compositedScrollsWithRespectTo(const LayoutBoxModelObject& paintInvalidationContainer) const;
+ IntSize scrollAdjustmentForPaintInvalidation(const LayoutBoxModelObject& paintInvalidationContainer) const;
protected:
enum LayoutObjectType {
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698