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; } |
private: |
ClipPaintPropertyNode(PassRefPtr<const ClipPaintPropertyNode> parent, PassRefPtr<const TransformPaintPropertyNode> localTransformSpace, const FloatRoundedRect& clipRect) |