Index: Source/core/editing/CreateLinkCommand.cpp |
diff --git a/Source/core/editing/CreateLinkCommand.cpp b/Source/core/editing/CreateLinkCommand.cpp |
index 8044a3e8e8d4b5c1265b3a47410cec71ca898a13..b1454bc2caa7f1a536dad9054de5259aa0c498e0 100644 |
--- a/Source/core/editing/CreateLinkCommand.cpp |
+++ b/Source/core/editing/CreateLinkCommand.cpp |
@@ -24,9 +24,9 @@ |
*/ |
#include "config.h" |
-#include "core/dom/Text.h" |
#include "core/editing/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()); |