| Index: third_party/WebKit/Source/core/dom/TreeScope.h
|
| diff --git a/third_party/WebKit/Source/core/dom/TreeScope.h b/third_party/WebKit/Source/core/dom/TreeScope.h
|
| index 663e46da19ac044c30f6c99a6b025941838d5ddc..88a3a756d4e0c3af496985634ed2a8155604c520 100644
|
| --- a/third_party/WebKit/Source/core/dom/TreeScope.h
|
| +++ b/third_party/WebKit/Source/core/dom/TreeScope.h
|
| @@ -64,7 +64,11 @@ public:
|
| void addElementById(const AtomicString& elementId, Element*);
|
| void removeElementById(const AtomicString& elementId, Element*);
|
|
|
| - Document& document() const;
|
| + Document& document() const
|
| + {
|
| + ASSERT(m_document);
|
| + return *m_document;
|
| + }
|
|
|
| Node* ancestorInThisScope(Node*) const;
|
|
|
| @@ -97,7 +101,7 @@ public:
|
|
|
| ContainerNode& rootNode() const { return *m_rootNode; }
|
|
|
| - IdTargetObserverRegistry& idTargetObserverRegistry() const;
|
| + IdTargetObserverRegistry& idTargetObserverRegistry() const { return *m_idTargetObserverRegistry.get(); }
|
|
|
| #if !ENABLE(OILPAN)
|
| // Nodes belonging to this scope hold guard references -
|
| @@ -135,7 +139,7 @@ public:
|
|
|
| DECLARE_VIRTUAL_TRACE();
|
|
|
| - ScopedStyleResolver* scopedStyleResolver() const;
|
| + ScopedStyleResolver* scopedStyleResolver() const { return m_scopedStyleResolver.get(); }
|
| ScopedStyleResolver& ensureScopedStyleResolver();
|
| void clearScopedStyleResolver();
|
|
|
| @@ -148,7 +152,7 @@ protected:
|
| void destroyTreeScopeData();
|
| #endif
|
|
|
| - void setDocument(Document&);
|
| + void setDocument(Document& document) { m_document = &document; }
|
| void setParentTreeScope(TreeScope&);
|
|
|
| #if !ENABLE(OILPAN)
|
|
|