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

Unified Diff: third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.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/InsertParagraphSeparatorCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.cpp b/third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.cpp
index b39fbc6b50efe77cecce316f747bff5731276796..e2345c607a1baddb136af3d77fd52b3c48f92975 100644
--- a/third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.cpp
@@ -471,9 +471,9 @@ void InsertParagraphSeparatorCommand::DoApply(EditingState* editing_state) {
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());
GetDocument().UpdateStyleAndLayoutIgnorePendingStylesheets();
}

Powered by Google App Engine
This is Rietveld 408576698