| Index: third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
|
| index 2fbed19343f414d28a0291b4e908133f4e3e9581..8b5c0a300a15cbe45f461b1cd20ec2aa61a4b1db 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
|
| @@ -870,7 +870,8 @@ void CompositeEditCommand::rebalanceWhitespaceOnTextSubstring(Text* textNode,
|
| // See http://crbug.com/310149
|
| const bool nextSiblingIsTextNode =
|
| textNode->nextSibling() && textNode->nextSibling()->isTextNode() &&
|
| - toText(textNode->nextSibling())->data().length();
|
| + toText(textNode->nextSibling())->data().length() &&
|
| + toText(textNode->nextSibling())->data()[0] != ' ';
|
| const bool shouldEmitNBSPbeforeEnd =
|
| (isEndOfParagraphDeprecated(visibleDownstreamPos) ||
|
| (unsigned)downstream == text.length()) &&
|
|
|