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

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, 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/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..05cc6c6e7a1254e1baef57808793f487c9835393 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.
+ PropertyTreeState contentsProperties() const;
szager1 2016/08/31 21:16:19 Perf nit: I'm not sure it's worth caring about, bu
chrishtr 2016/09/01 16:56:22 Done.
void clearPaintOffsetTranslation() { m_paintOffsetTranslation = nullptr; }
void clearTransform() { m_transform = nullptr; }

Powered by Google App Engine
This is Rietveld 408576698