| 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 b3b12ac43eb61b64e270f190d3d1071fc1e5d516..5cadbda9a7df38083c8a8cdac41f9362768599e2 100644 | 
| --- a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp | 
| +++ b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp | 
| @@ -871,7 +871,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 = | 
| (isEndOfParagraph(visibleDownstreamPos) || | 
| (unsigned)downstream == text.length()) && | 
|  |