| Index: third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp b/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp
|
| index c3cec4948f264aa91cc36320b99ea8bad69b5713..7a9c48e5dc5b44be4ff5243ea253430aea36f36f 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp
|
| @@ -760,9 +760,9 @@ void DeleteSelectionCommand::FixupWhitespace() {
|
| DCHECK(!text_node->GetLayoutObject() ||
|
| text_node->GetLayoutObject()->Style()->CollapseWhiteSpace())
|
| << text_node;
|
| - ReplaceTextInNodePreservingMarkers(
|
| - text_node, leading_whitespace_.ComputeOffsetInContainerNode(), 1,
|
| - NonBreakingSpaceString());
|
| + ReplaceTextInNode(text_node,
|
| + leading_whitespace_.ComputeOffsetInContainerNode(), 1,
|
| + NonBreakingSpaceString());
|
| }
|
| if (trailing_whitespace_.IsNotNull() &&
|
| !IsRenderedCharacter(trailing_whitespace_) &&
|
| @@ -771,9 +771,9 @@ void DeleteSelectionCommand::FixupWhitespace() {
|
| DCHECK(!text_node->GetLayoutObject() ||
|
| text_node->GetLayoutObject()->Style()->CollapseWhiteSpace())
|
| << text_node;
|
| - ReplaceTextInNodePreservingMarkers(
|
| - text_node, trailing_whitespace_.ComputeOffsetInContainerNode(), 1,
|
| - NonBreakingSpaceString());
|
| + ReplaceTextInNode(text_node,
|
| + trailing_whitespace_.ComputeOffsetInContainerNode(), 1,
|
| + NonBreakingSpaceString());
|
| }
|
| }
|
|
|
|
|