diff options
Diffstat (limited to 'WebCore/editing/SplitTextNodeCommand.cpp')
-rw-r--r-- | WebCore/editing/SplitTextNodeCommand.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WebCore/editing/SplitTextNodeCommand.cpp b/WebCore/editing/SplitTextNodeCommand.cpp index 07a54e3..3b04e01 100644 --- a/WebCore/editing/SplitTextNodeCommand.cpp +++ b/WebCore/editing/SplitTextNodeCommand.cpp @@ -55,7 +55,7 @@ void SplitTextNodeCommand::doApply() if (prefixText.isEmpty()) return; - RefPtr<Text> prefixTextNode = new Text(document(), prefixText); + RefPtr<Text> prefixTextNode = Text::create(document(), prefixText); ASSERT(prefixTextNode); document()->copyMarkers(m_text2.get(), 0, m_offset, prefixTextNode.get(), 0); |