Index: Source/core/editing/ReplaceNodeWithSpanCommand.cpp |
diff --git a/Source/core/editing/ReplaceNodeWithSpanCommand.cpp b/Source/core/editing/ReplaceNodeWithSpanCommand.cpp |
index e3e1dbf929f3d9079e522f8a76f5cf5ed3579379..e09b6a13c37d7c1045c1edf45b986fa968df2566 100644 |
--- a/Source/core/editing/ReplaceNodeWithSpanCommand.cpp |
+++ b/Source/core/editing/ReplaceNodeWithSpanCommand.cpp |
@@ -70,7 +70,7 @@ void ReplaceNodeWithSpanCommand::doApply() |
if (!m_elementToReplace->inDocument()) |
return; |
if (!m_spanElement) |
- m_spanElement = createHTMLElement(&m_elementToReplace->document(), spanTag); |
+ m_spanElement = createHTMLElement(m_elementToReplace->document(), spanTag); |
swapInNodePreservingAttributesAndChildren(m_spanElement.get(), m_elementToReplace.get()); |
} |