Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(727)

Unified Diff: Source/core/editing/commands/InsertTextCommand.cpp

Issue 1294543005: Move execCommand related files in core/editing/ related files into core/editing/commands/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-17T17:57:33 Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698