Index: Source/core/editing/commands/InsertTextCommand.cpp |
diff --git a/Source/core/editing/InsertTextCommand.cpp b/Source/core/editing/commands/InsertTextCommand.cpp |
similarity index 99% |
rename from Source/core/editing/InsertTextCommand.cpp |
rename to Source/core/editing/commands/InsertTextCommand.cpp |
index 37019b92043abcd814e0e5960a4fafda3618adde..50f2c14da72d26b20ef3f98748ba9d519bc295ef 100644 |
--- a/Source/core/editing/InsertTextCommand.cpp |
+++ b/Source/core/editing/commands/InsertTextCommand.cpp |
@@ -24,7 +24,7 @@ |
*/ |
#include "config.h" |
-#include "core/editing/InsertTextCommand.h" |
+#include "core/editing/commands/InsertTextCommand.h" |
#include "core/dom/Document.h" |
#include "core/dom/Element.h" |
@@ -253,9 +253,9 @@ Position InsertTextCommand::insertTab(const Position& pos) |
insertNodeAt(spanElement.get(), insertPos); |
} else { |
RefPtrWillBeRawPtr<Text> textNode = toText(node); |
- if (offset >= textNode->length()) |
+ if (offset >= textNode->length()) { |
insertNodeAfter(spanElement, textNode.release()); |
- else { |
+ } else { |
// split node to make room for the span |
// NOTE: splitTextNode uses textNode for the |
// second node in the split, so we need to |