Index: Source/core/editing/InsertTextCommand.cpp |
diff --git a/Source/core/editing/InsertTextCommand.cpp b/Source/core/editing/InsertTextCommand.cpp |
index 37019b92043abcd814e0e5960a4fafda3618adde..a62339f3af83b25f33b8bf6ca150f2ec31de6881 100644 |
--- a/Source/core/editing/InsertTextCommand.cpp |
+++ b/Source/core/editing/InsertTextCommand.cpp |
@@ -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 |