Index: Source/core/dom/Text.cpp |
diff --git a/Source/core/dom/Text.cpp b/Source/core/dom/Text.cpp |
index 4392303dc9b2958b8a8143d21e21ba3151068bea..3e2e243e4c39fe7fd5f01bfd86ca93834830bb9c 100644 |
--- a/Source/core/dom/Text.cpp |
+++ b/Source/core/dom/Text.cpp |
@@ -89,7 +89,7 @@ PassRefPtr<Node> Text::mergeNextSiblingNodesIfPossible() |
nextText->setDataWithoutUpdate(emptyString()); |
nextText->updateTextRenderer(0, nextTextData.length()); |
- document().didMergeTextNodes(nextText.get(), offset); |
+ document().didMergeTextNodes(*nextText, offset); |
// Restore nextText for mutation event. |
nextText->setDataWithoutUpdate(nextTextData); |
@@ -128,7 +128,7 @@ PassRefPtr<Text> Text::splitText(unsigned offset, ExceptionState& exceptionState |
toRenderText(renderer())->setTextWithOffset(dataImpl(), 0, oldStr.length()); |
if (parentNode()) |
- document().didSplitTextNode(this); |
+ document().didSplitTextNode(*this); |
return newText.release(); |
} |