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

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

Issue 112953007: Make TreeScope::documentScope() return a reference and ensure m_documentScope is never NULL (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added FIXMEs Created 6 years, 11 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/Document.cpp ('k') | Source/core/dom/NodeRareData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Node.h
diff --git a/Source/core/dom/Node.h b/Source/core/dom/Node.h
index 3dbe54f1382efec29b51f5af9e5829745864c467..7465bdd137d45a83afa4d6274d056a4c3cbfb9a6 100644
--- a/Source/core/dom/Node.h
+++ b/Source/core/dom/Node.h
@@ -456,8 +456,7 @@ public:
// Returns the document associated with this node. A Document node returns itself.
Document& document() const
{
- ASSERT(treeScope().documentScope());
- return *treeScope().documentScope();
+ return treeScope().documentScope();
}
TreeScope& treeScope() const
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/NodeRareData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698