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

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

Issue 2364103003: Switch RootLayerScrolls to use root transform and scroll properties (Closed)
Patch Set: 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 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 08df5a77e7e97d9801cfb642c869ac03bcbec5b4..82f5fdaff5ee5b95ada651661c9d24933fff8f62 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.h
@@ -17,8 +17,10 @@
namespace blink {
// A transform created by a css property such as "transform" or "perspective"
-// along with a reference to the parent TransformPaintPropertyNode, or nullptr
-// for the root.
+// along with a reference to the parent TransformPaintPropertyNode.
+//
+// The transform tree is rooted at a node with no parent. This root node should
+// not be modified.
class PLATFORM_EXPORT TransformPaintPropertyNode : public RefCounted<TransformPaintPropertyNode> {
public:
static PassRefPtr<TransformPaintPropertyNode> create(
@@ -33,6 +35,7 @@ public:
void update(PassRefPtr<const TransformPaintPropertyNode> parent, const TransformationMatrix& matrix, const FloatPoint3D& origin, bool flattensInheritedTransform = false, unsigned renderingContextID = 0)
{
+ DCHECK(!isRoot());
DCHECK(parent != this);
m_parent = parent;
m_matrix = matrix;

Powered by Google App Engine
This is Rietveld 408576698