Index: Source/WebCore/dom/Text.cpp |
=================================================================== |
--- Source/WebCore/dom/Text.cpp (revision 109461) |
+++ Source/WebCore/dom/Text.cpp (working copy) |
@@ -147,7 +147,7 @@ |
RefPtr<Text> endText = const_cast<Text*>(latestLogicallyAdjacentTextNode(this)); |
RefPtr<Text> protectedThis(this); // Mutation event handlers could cause our last ref to go away |
- ContainerNode* parent = parentNode(); // Protect against mutation handlers moving this node during traversal |
+ RefPtr<ContainerNode> parent = parentNode(); // Protect against mutation handlers moving this node during traversal |
ExceptionCode ignored = 0; |
for (RefPtr<Node> n = startText; n && n != this && n->isTextNode() && n->parentNode() == parent;) { |
RefPtr<Node> nodeToRemove(n.release()); |