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

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

Issue 159853004: Ensure that every Document has a single, distinct template content ownerDocument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Suppress expected w3c test failures Created 6 years, 10 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 | « LayoutTests/fast/dom/HTMLTemplateElement/resources/template-import.html ('k') | Source/core/dom/Document.h » ('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 f8f1f2db805bec9e07575faff72f3de1e488f389..2f4f605344b9795075420d50c02a4fff80932772 100644
--- a/Source/core/dom/ContainerNode.cpp
+++ b/Source/core/dom/ContainerNode.cpp
@@ -112,7 +112,7 @@ bool ContainerNode::isChildTypeAllowed(const Node& child) const
bool ContainerNode::containsConsideringHostElements(const Node& newChild) const
{
- if (isInShadowTree() || document() == document().templateDocument())
+ if (isInShadowTree() || document().isTemplateDocument())
return newChild.containsIncludingHostElements(*this);
return newChild.contains(this);
}
« no previous file with comments | « LayoutTests/fast/dom/HTMLTemplateElement/resources/template-import.html ('k') | Source/core/dom/Document.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698