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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/ClipPaintPropertyNode.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/ClipPaintPropertyNode.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/ClipPaintPropertyNode.h b/third_party/WebKit/Source/platform/graphics/paint/ClipPaintPropertyNode.h
index 293da8d1a609fe1671119034fd12bc65289ff095..4abae0cbd4814dab73a252faacd9c1a4e56ae2e4 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/ClipPaintPropertyNode.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/ClipPaintPropertyNode.h
@@ -42,6 +42,7 @@ public:
// Reference to inherited clips, or nullptr if this is the only clip.
const ClipPaintPropertyNode* parent() const { return m_parent.get(); }
+ bool isRoot() const { return !m_parent; }
chrishtr 2016/09/22 16:36:57 You never use this method outside of tests. why ad
pdr. 2016/09/22 19:48:21 It's also used in the property tree printer. I thi
private:
ClipPaintPropertyNode(PassRefPtr<const ClipPaintPropertyNode> parent, PassRefPtr<const TransformPaintPropertyNode> localTransformSpace, const FloatRoundedRect& clipRect)

Powered by Google App Engine
This is Rietveld 408576698