| 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 2b3ebd30879ddeb4dced95717d26069075b5666c..1f06a43d829685ddb5229108c049e24ee0464d79 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
|
| @@ -735,7 +735,8 @@ void CompositeEditCommand::rebalanceWhitespaceOnTextSubstring(Text* textNode, in
|
| // doesn't get all surrounding whitespace, just the whitespace in the
|
| // current text node.
|
| isStartOfParagraph(visibleUpstreamPos) || upstream == 0,
|
| - isEndOfParagraph(visibleDownstreamPos) || (unsigned)downstream == text.length());
|
| + (isEndOfParagraph(visibleDownstreamPos) || (unsigned)downstream == text.length())
|
| + && !(textNode->nextSibling() && textNode->nextSibling()->isTextNode()));
|
|
|
| if (string != rebalancedString)
|
| replaceTextInNodePreservingMarkers(textNode, upstream, length, rebalancedString);
|
|
|