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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.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/TransformPaintPropertyNode.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.h b/third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.h
index 945464ccd8beef9b280648aa26a2f43d57207d9b..b635aac497d34c82965b3de10e2a38a0828b5335 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.h
@@ -49,6 +49,19 @@ class PLATFORM_EXPORT TransformPaintPropertyNode
m_renderingContextID = renderingContextID;
}
+ PassRefPtr<TransformPaintPropertyNode> clone() const {
+ return adoptRef(new TransformPaintPropertyNode(m_matrix, m_origin, m_parent,
+ m_flattensInheritedTransform,
+ m_renderingContextID));
+ }
+
+ bool operator==(const TransformPaintPropertyNode& o) const {
+ return m_matrix == o.m_matrix && m_origin == o.m_origin &&
+ m_parent == o.m_parent &&
+ m_flattensInheritedTransform == o.m_flattensInheritedTransform &&
+ m_renderingContextID == o.m_renderingContextID;
+ }
+
const TransformationMatrix& matrix() const { return m_matrix; }
const FloatPoint3D& origin() const { return m_origin; }

Powered by Google App Engine
This is Rietveld 408576698