| 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..a75f95325640e5953cadb7e0e2f4adaf92bf66a8 100644
|
| --- a/third_party/WebKit/Source/core/dom/Node.h
|
| +++ b/third_party/WebKit/Source/core/dom/Node.h
|
| @@ -470,10 +470,10 @@ public:
|
| // Returns the document associated with this node. A Document node returns itself.
|
| Document& document() const
|
| {
|
| - return treeScope().document();
|
| + return treeScopeOrDocument().document();
|
| }
|
|
|
| - TreeScope& treeScope() const
|
| + TreeScope& treeScopeOrDocument() const
|
| {
|
| DCHECK(m_treeScope);
|
| return *m_treeScope;
|
|
|