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

Unified Diff: Source/core/dom/ContainerNode.cpp

Issue 23717008: Remove useless null checks from Node::document() call sites (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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/css/resolver/ElementResolveContext.h ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ContainerNode.cpp
diff --git a/Source/core/dom/ContainerNode.cpp b/Source/core/dom/ContainerNode.cpp
index 94c37e5c379f0c2c299e27f7ade53f7378db93f8..70fccff6a612a0f4985328034de6a6720bc4fae8 100644
--- a/Source/core/dom/ContainerNode.cpp
+++ b/Source/core/dom/ContainerNode.cpp
@@ -147,7 +147,7 @@ static inline bool isChildTypeAllowed(ContainerNode* newParent, Node* child)
static inline bool isInTemplateContent(const Node* node)
{
Document* document = node->document();
- return document && document == document->templateDocument();
+ return document == document->templateDocument();
}
static inline bool containsConsideringHostElements(const Node* newChild, const Node* newParent)
« no previous file with comments | « Source/core/css/resolver/ElementResolveContext.h ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698