Chromium Code Reviews| 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) { } |