Index: Source/core/editing/commands/CreateLinkCommand.cpp |
diff --git a/Source/core/editing/commands/CreateLinkCommand.cpp b/Source/core/editing/commands/CreateLinkCommand.cpp |
index 309773b032b2cb9f0c8955d0c430176ae7603444..b5fe600f0e1ea66aee2cd6125b1b9d4e36cd05d9 100644 |
--- a/Source/core/editing/commands/CreateLinkCommand.cpp |
+++ b/Source/core/editing/commands/CreateLinkCommand.cpp |
@@ -51,7 +51,7 @@ void CreateLinkCommand::doApply() |
insertNodeAt(anchorElement.get(), endingSelection().start()); |
RefPtrWillBeRawPtr<Text> textNode = Text::create(document(), m_url); |
appendNode(textNode.get(), anchorElement.get()); |
- setEndingSelection(VisibleSelection(positionInParentBeforeNode(*anchorElement), positionInParentAfterNode(*anchorElement), DOWNSTREAM, endingSelection().isDirectional())); |
+ setEndingSelection(VisibleSelection(positionInParentBeforeNode(*anchorElement), positionInParentAfterNode(*anchorElement), TextAffinity::Downstream, endingSelection().isDirectional())); |
} |
} |