Index: Source/core/editing/CreateLinkCommand.cpp |
diff --git a/Source/core/editing/CreateLinkCommand.cpp b/Source/core/editing/CreateLinkCommand.cpp |
index 326b0063edfd8090fe63f29efc8917ba43fe1229..88f969e5e85ade92b5791d3ed6d06b1bb235ccc3 100644 |
--- a/Source/core/editing/CreateLinkCommand.cpp |
+++ b/Source/core/editing/CreateLinkCommand.cpp |
@@ -49,7 +49,7 @@ void CreateLinkCommand::doApply() |
applyStyledElement(anchorElement.get()); |
else { |
insertNodeAt(anchorElement.get(), endingSelection().start()); |
- RefPtr<Text> textNode = Text::create(&document(), m_url); |
+ RefPtr<Text> textNode = Text::create(document(), m_url); |
appendNode(textNode.get(), anchorElement.get()); |
setEndingSelection(VisibleSelection(positionInParentBeforeNode(anchorElement.get()), positionInParentAfterNode(anchorElement.get()), DOWNSTREAM, endingSelection().isDirectional())); |
} |