summaryrefslogtreecommitdiffstats
path: root/WebCore/editing/CreateLinkCommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/editing/CreateLinkCommand.cpp')
-rw-r--r--WebCore/editing/CreateLinkCommand.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/WebCore/editing/CreateLinkCommand.cpp b/WebCore/editing/CreateLinkCommand.cpp
index 98d6c6d..263feab 100644
--- a/WebCore/editing/CreateLinkCommand.cpp
+++ b/WebCore/editing/CreateLinkCommand.cpp
@@ -51,7 +51,7 @@ void CreateLinkCommand::doApply()
applyStyledElement(anchorElement.get());
} else {
insertNodeAt(anchorElement.get(), endingSelection().start());
- RefPtr<Text> textNode = Text::create(document(), m_url);
+ RefPtr<Text> textNode = new Text(document(), m_url);
appendNode(textNode.get(), anchorElement.get());
setEndingSelection(VisibleSelection(positionBeforeNode(anchorElement.get()), positionAfterNode(anchorElement.get()), DOWNSTREAM));
}