Index: Source/core/html/HTMLTemplateElement.cpp |
diff --git a/Source/core/html/HTMLTemplateElement.cpp b/Source/core/html/HTMLTemplateElement.cpp |
index ec672667aa2258a7664862ef7b4fbb150bcb6b5a..abcfb15ff9bb4a1444fa458e51649781c6ccd97e 100644 |
--- a/Source/core/html/HTMLTemplateElement.cpp |
+++ b/Source/core/html/HTMLTemplateElement.cpp |
@@ -57,7 +57,7 @@ PassRefPtr<HTMLTemplateElement> HTMLTemplateElement::create(const QualifiedName& |
DocumentFragment* HTMLTemplateElement::content() const |
{ |
if (!m_content) |
- m_content = TemplateContentDocumentFragment::create(document()->ensureTemplateDocument(), this); |
+ m_content = TemplateContentDocumentFragment::create(document().ensureTemplateDocument(), this); |
return m_content.get(); |
} |
@@ -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()); |
} |
#ifndef NDEBUG |