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

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

Issue 2320463002: [SPV2] Implement the blink-side scroll property tree (Closed)
Patch Set: Prevent circular reference caught by lsan Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef TransformPaintPropertyNode_h 5 #ifndef TransformPaintPropertyNode_h
6 #define TransformPaintPropertyNode_h 6 #define TransformPaintPropertyNode_h
7 7
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 #include "platform/geometry/FloatPoint3D.h" 9 #include "platform/geometry/FloatPoint3D.h"
10 #include "platform/transforms/TransformationMatrix.h" 10 #include "platform/transforms/TransformationMatrix.h"
(...skipping 15 matching lines...) Expand all
26 const TransformationMatrix& matrix, 26 const TransformationMatrix& matrix,
27 const FloatPoint3D& origin, 27 const FloatPoint3D& origin,
28 bool flattensInheritedTransform = false, 28 bool flattensInheritedTransform = false,
29 unsigned renderingContextID = 0) 29 unsigned renderingContextID = 0)
30 { 30 {
31 return adoptRef(new TransformPaintPropertyNode(matrix, origin, std::move (parent), flattensInheritedTransform, renderingContextID)); 31 return adoptRef(new TransformPaintPropertyNode(matrix, origin, std::move (parent), flattensInheritedTransform, renderingContextID));
32 } 32 }
33 33
34 void update(PassRefPtr<const TransformPaintPropertyNode> parent, const Trans formationMatrix& matrix, const FloatPoint3D& origin, bool flattensInheritedTrans form = false, unsigned renderingContextID = 0) 34 void update(PassRefPtr<const TransformPaintPropertyNode> parent, const Trans formationMatrix& matrix, const FloatPoint3D& origin, bool flattensInheritedTrans form = false, unsigned renderingContextID = 0)
35 { 35 {
36 DCHECK(parent != this);
36 m_parent = parent; 37 m_parent = parent;
37 m_matrix = matrix; 38 m_matrix = matrix;
38 m_origin = origin; 39 m_origin = origin;
39 m_flattensInheritedTransform = flattensInheritedTransform; 40 m_flattensInheritedTransform = flattensInheritedTransform;
40 m_renderingContextID = renderingContextID; 41 m_renderingContextID = renderingContextID;
41 } 42 }
42 43
43 const TransformationMatrix& matrix() const { return m_matrix; } 44 const TransformationMatrix& matrix() const { return m_matrix; }
44 const FloatPoint3D& origin() const { return m_origin; } 45 const FloatPoint3D& origin() const { return m_origin; }
45 46
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 unsigned m_renderingContextID; 80 unsigned m_renderingContextID;
80 }; 81 };
81 82
82 // Redeclared here to avoid ODR issues. 83 // Redeclared here to avoid ODR issues.
83 // See platform/testing/PaintPrinters.h. 84 // See platform/testing/PaintPrinters.h.
84 void PrintTo(const TransformPaintPropertyNode&, std::ostream*); 85 void PrintTo(const TransformPaintPropertyNode&, std::ostream*);
85 86
86 } // namespace blink 87 } // namespace blink
87 88
88 #endif // TransformPaintPropertyNode_h 89 #endif // TransformPaintPropertyNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698