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

Unified Diff: third_party/WebKit/Source/core/paint/ObjectPaintProperties.h

Issue 2292273003: Define contentsProperties on ObjectPaintProperties, for use in paint invalidation. (Closed)
Patch Set: none Created 4 years, 3 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/paint/ObjectPaintProperties.h
diff --git a/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h b/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h
index 9c9a1a7ef390ce1af5aa1dff570c137d6ca4184e..b989c8bc6a209e9ab1f4ba256926740563f4379e 100644
--- a/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h
+++ b/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h
@@ -59,6 +59,7 @@ public:
// The hierarchy of the clip subtree created by a LayoutObject is as follows:
// [ css clip ]
+ // [ css clip fixed position]
// |
// +--- [ overflow clip ]
const ClipPaintPropertyNode* cssClip() const { return m_cssClip.get(); }
@@ -77,6 +78,9 @@ public:
PropertyTreeState propertyTreeState;
};
const LocalBorderBoxProperties* localBorderBoxProperties() const { return m_localBorderBoxProperties.get(); }
+ // ContentsProperties is the PropertyTreeState state that is the same as in localBorderBoxProperties, except that it is inside
+ // any clips and scrolls caused by this object. This PropertyTreeState is suitable as the destination for paint invalidation.
+ void getContentsProperties(PropertyTreeState&) const;
void clearPaintOffsetTranslation() { m_paintOffsetTranslation = nullptr; }
void clearTransform() { m_transform = nullptr; }
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/paint/ObjectPaintProperties.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698