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 d8ed94c3b42987a2debfd40e1e6c6c2c38bcec3c..1c898c525dc5c9c8d5a403062637151d0d85db74 100644 |
--- a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp |
+++ b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp |
@@ -736,7 +736,7 @@ void CompositeEditCommand::rebalanceWhitespaceOnTextSubstring(Text* textNode, in |
// current text node. |
isStartOfParagraph(visibleUpstreamPos) || upstream == 0, |
(isEndOfParagraph(visibleDownstreamPos) || (unsigned)downstream == text.length()) |
yosin_UTC9
2016/07/29 01:15:57
OPTIONAL: I think using local variable |shouldEmit
|
- && !(textNode->nextSibling() && textNode->nextSibling()->isTextNode())); |
+ && !(textNode->nextSibling() && textNode->nextSibling()->isTextNode() && toText(textNode->nextSibling())->data().length() != 0)); |
if (string != rebalancedString) |
replaceTextInNodePreservingMarkers(textNode, upstream, length, rebalancedString); |