Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Unified Diff: third_party/WebKit/Source/core/dom/TreeScope.h

Issue 1455943002: [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CORE_EXPORT Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.cpp ('k') | third_party/WebKit/Source/core/dom/TreeScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698