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 27e30a4494d4bc6d027c1fd6a165016ccf37b7fb..e60b43889c55d098cb596c62b67d586715509230 100644 |
--- a/third_party/WebKit/Source/core/dom/Node.h |
+++ b/third_party/WebKit/Source/core/dom/Node.h |
@@ -457,6 +457,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 |