Chromium Code Reviews| 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 a9b49626a290c24aa48a53e0fbb221a2a3cd4af6..77a265941801e650300376baeac32f1692b8f3e7 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(), |
|
yosin_UTC9
2016/07/25 07:42:23
How about renaming |endIsEndOfParagraph| to |shoul
joone
2016/07/26 04:16:34
Done.
|
| + textNode->nextSibling() && textNode->nextSibling()->isTextNode()); |
| if (string != rebalancedString) |
| replaceTextInNodePreservingMarkers(textNode, upstream, length, rebalancedString); |