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) |