| Index: Source/core/editing/commands/CreateLinkCommand.cpp
|
| diff --git a/Source/core/editing/CreateLinkCommand.cpp b/Source/core/editing/commands/CreateLinkCommand.cpp
|
| similarity index 95%
|
| rename from Source/core/editing/CreateLinkCommand.cpp
|
| rename to Source/core/editing/commands/CreateLinkCommand.cpp
|
| index 8044a3e8e8d4b5c1265b3a47410cec71ca898a13..309773b032b2cb9f0c8955d0c430176ae7603444 100644
|
| --- a/Source/core/editing/CreateLinkCommand.cpp
|
| +++ b/Source/core/editing/commands/CreateLinkCommand.cpp
|
| @@ -24,9 +24,9 @@
|
| */
|
|
|
| #include "config.h"
|
| -#include "core/dom/Text.h"
|
| -#include "core/editing/CreateLinkCommand.h"
|
| +#include "core/editing/commands/CreateLinkCommand.h"
|
|
|
| +#include "core/dom/Text.h"
|
| #include "core/html/HTMLAnchorElement.h"
|
|
|
| namespace blink {
|
| @@ -45,9 +45,9 @@ void CreateLinkCommand::doApply()
|
| RefPtrWillBeRawPtr<HTMLAnchorElement> anchorElement = HTMLAnchorElement::create(document());
|
| anchorElement->setHref(AtomicString(m_url));
|
|
|
| - if (endingSelection().isRange())
|
| + if (endingSelection().isRange()) {
|
| applyStyledElement(anchorElement.get());
|
| - else {
|
| + } else {
|
| insertNodeAt(anchorElement.get(), endingSelection().start());
|
| RefPtrWillBeRawPtr<Text> textNode = Text::create(document(), m_url);
|
| appendNode(textNode.get(), anchorElement.get());
|
|
|