Index: Source/core/html/HTMLTemplateElement.cpp |
diff --git a/Source/core/html/HTMLTemplateElement.cpp b/Source/core/html/HTMLTemplateElement.cpp |
index e9d43d406a0bd8defc3299d5cfd6513fedb30e42..0d229fc37163169f30a7c78f5acf320138cea852 100644 |
--- a/Source/core/html/HTMLTemplateElement.cpp |
+++ b/Source/core/html/HTMLTemplateElement.cpp |
@@ -78,7 +78,7 @@ void HTMLTemplateElement::didMoveToNewDocument(Document* oldDocument) |
HTMLElement::didMoveToNewDocument(oldDocument); |
if (!m_content) |
return; |
- document().ensureTemplateDocument()->adoptIfNeeded(m_content.get()); |
+ document().ensureTemplateDocument().adoptIfNeeded(m_content.get()); |
} |
} // namespace WebCore |