Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Unified Diff: third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp

Issue 2755013004: Improve how DocumentMarkerController updates markers in response to text edits (Closed)
Patch Set: Rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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());
}
}

Powered by Google App Engine
This is Rietveld 408576698