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

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

Issue 2105273004: GeometryMapper: Support computing visual rects in spaces that are not direct ancestors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: none Created 4 years, 6 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 0bef99ee629614eaf4044374528e81fd3c151030..1272dc1e1d184531b1dd1354bad85f60265a051f 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.h
@@ -31,9 +31,13 @@ public:
// Parent transform that this transform is relative to, or nullptr if this
// is the root transform.
- const TransformPaintPropertyNode* parent() const { return m_parent.get(); }
+ TransformPaintPropertyNode* parent() const { return m_parent.get(); }
+
+ // Do not use this method if possible, use parent() instead, to preserve const-ness.
+ PassRefPtr<TransformPaintPropertyNode> parentRef() const { return m_parent; }
chrishtr 2016/06/30 16:49:55 Needed so that we can store a refptr to a parent i
pdr. 2016/06/30 21:21:50 This doesn't appear to be used in this patch.
chrishtr 2016/07/01 17:52:24 Removed. The test was crashing due to refptr count
private:
+
TransformPaintPropertyNode(const TransformationMatrix& matrix, const FloatPoint3D& origin, PassRefPtr<TransformPaintPropertyNode> parent)
: m_matrix(matrix), m_origin(origin), m_parent(parent) { }

Powered by Google App Engine
This is Rietveld 408576698