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