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

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: 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
Index: Source/core/dom/Node.h
diff --git a/Source/core/dom/Node.h b/Source/core/dom/Node.h
index 008771001f0a298e8253143fc579702c87ce7696..e352ef37c9c5bfc6a456e8151f932eadf801a254 100644
--- a/Source/core/dom/Node.h
+++ b/Source/core/dom/Node.h
@@ -457,8 +457,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

Powered by Google App Engine
This is Rietveld 408576698