Index: third_party/WebKit/Source/core/editing/commands/InsertTextCommand.cpp |
diff --git a/third_party/WebKit/Source/core/editing/commands/InsertTextCommand.cpp b/third_party/WebKit/Source/core/editing/commands/InsertTextCommand.cpp |
index aeeb8480ee596117640bd197264a8bbc83df9d15..e803959aaee2f344fcc794d62bfc02d30ea125f5 100644 |
--- a/third_party/WebKit/Source/core/editing/commands/InsertTextCommand.cpp |
+++ b/third_party/WebKit/Source/core/editing/commands/InsertTextCommand.cpp |
@@ -276,7 +276,7 @@ void InsertTextCommand::DoApply(EditingState* editing_state) { |
GetDocument().GetFrame()->GetEditor().TypingStyle()) { |
typing_style->PrepareToApplyAt(end_position, |
EditingStyle::kPreserveWritingDirection); |
- if (!typing_style->IsEmpty()) { |
+ if (!typing_style->IsEmpty() && !EndingSelection().IsNone()) { |
ApplyStyle(typing_style, editing_state); |
if (editing_state->IsAborted()) |
return; |