Index: Source/WebCore/editing/ReplaceNodeWithSpanCommand.cpp |
=================================================================== |
--- Source/WebCore/editing/ReplaceNodeWithSpanCommand.cpp (revision 99022) |
+++ Source/WebCore/editing/ReplaceNodeWithSpanCommand.cpp (working copy) |
@@ -52,7 +52,7 @@ |
{ |
ASSERT(nodeToReplace->inDocument()); |
ExceptionCode ec = 0; |
- ContainerNode* parentNode = nodeToReplace->parentNode(); |
+ RefPtr<ContainerNode> parentNode = nodeToReplace->parentNode(); |
parentNode->insertBefore(newNode, nodeToReplace, ec); |
ASSERT(!ec); |