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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/ClipPaintPropertyNode.h

Issue 2404213004: Implement incremental paint property tree rebuilding (Closed)
Patch Set: Fix bug in how svg local to border box was updated, no longer crash in tests Created 4 years, 2 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/platform/graphics/paint/ClipPaintPropertyNode.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/ClipPaintPropertyNode.h b/third_party/WebKit/Source/platform/graphics/paint/ClipPaintPropertyNode.h
index 28d06ecbcfac07ac921e9b301e252e940c560f06..b29037f82a2a9f6c504441c9a2ed05868a1891d1 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/ClipPaintPropertyNode.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/ClipPaintPropertyNode.h
@@ -43,6 +43,17 @@ class PLATFORM_EXPORT ClipPaintPropertyNode
m_clipRect = clipRect;
}
+ PassRefPtr<ClipPaintPropertyNode> clone() const {
+ return adoptRef(
+ new ClipPaintPropertyNode(m_parent, m_localTransformSpace, m_clipRect));
+ }
+
+ bool operator==(const ClipPaintPropertyNode& o) const {
+ return m_parent == o.m_parent &&
+ m_localTransformSpace == o.m_localTransformSpace &&
+ m_clipRect == o.m_clipRect;
+ }
+
const TransformPaintPropertyNode* localTransformSpace() const {
return m_localTransformSpace.get();
}

Powered by Google App Engine
This is Rietveld 408576698