Index: third_party/WebKit/Source/core/dom/Node.h |
diff --git a/third_party/WebKit/Source/core/dom/Node.h b/third_party/WebKit/Source/core/dom/Node.h |
index a2699fad2f45c1debea89e2e1e2251fde825ef6d..4dea596929e29b9321542b1f340fa8c1969aa779 100644 |
--- a/third_party/WebKit/Source/core/dom/Node.h |
+++ b/third_party/WebKit/Source/core/dom/Node.h |
@@ -479,6 +479,12 @@ public: |
return *m_treeScope; |
} |
+ TreeScope& rootTreeScope() const |
+ { |
+ DCHECK(isInTreeScope()); |
+ return *m_treeScope; |
+ } |
+ |
bool inActiveDocument() const; |
// Returns true if this node is associated with a shadow-including document and is in its associated document's |