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

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

Issue 2359063002: Add static root property tree nodes [spv2] (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 a6f24afe8ed8c97b8931277ad69cfdf7e6f27862..08df5a77e7e97d9801cfb642c869ac03bcbec5b4 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.h
@@ -47,6 +47,7 @@ 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(); }
+ bool isRoot() const { return !m_parent; }
// If true, content with this transform node (or its descendant) appears in
// the plane of its parent. This is implemented by flattening the total

Powered by Google App Engine
This is Rietveld 408576698