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

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

Issue 1461193003: Revert of [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make patch applicable 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 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)
« 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