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

Unified Diff: Source/core/dom/TreeScopeAdopter.h

Issue 23890025: WIP (Introduce WTF::NonNullPtr<T>.) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 months 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
« no previous file with comments | « Source/core/dom/TreeScope.cpp ('k') | Source/core/dom/TreeScopeAdopter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/TreeScopeAdopter.h
diff --git a/Source/core/dom/TreeScopeAdopter.h b/Source/core/dom/TreeScopeAdopter.h
index 4ad97606d5e3cc44dae37face1c709255b5e2efe..0d8569e14193f0ed438f66988762508a52f773ec 100644
--- a/Source/core/dom/TreeScopeAdopter.h
+++ b/Source/core/dom/TreeScopeAdopter.h
@@ -55,11 +55,11 @@ private:
TreeScope* m_oldScope;
};
-// FIXME: Should take |TreeScope&| instead of |TreeScope*|.
+// FIXME: Should take |NonNullPtr<TreeScope>| instead of |TreeScope*|.
inline TreeScopeAdopter::TreeScopeAdopter(Node* toAdopt, TreeScope* newScope)
: m_toAdopt(toAdopt)
, m_newScope(newScope)
- , m_oldScope(&toAdopt->treeScope())
+ , m_oldScope(toAdopt->treeScope().get())
{
ASSERT(newScope);
}
« no previous file with comments | « Source/core/dom/TreeScope.cpp ('k') | Source/core/dom/TreeScopeAdopter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698