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

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

Issue 2692093003: Rewrite DocumentMarkerController to use SynchronousMutationObserver (Closed)
Patch Set: Fx tests to match current behavior of master Created 3 years, 10 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 d8185db1c51537cfe28581138857e88f00b6854c..5a0115d6b6a377a0cc7d57602f27aa61f2632499 100644
--- a/third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.cpp
@@ -464,9 +464,9 @@ void InsertParagraphSeparatorCommand::doApply(EditingState* editingState) {
DCHECK(!textNode->layoutObject() ||
textNode->layoutObject()->style()->collapseWhiteSpace())
<< textNode;
- replaceTextInNodePreservingMarkers(
- textNode, leadingWhitespace.computeOffsetInContainerNode(), 1,
- nonBreakingSpaceString());
+ replaceTextInNode(textNode,
+ leadingWhitespace.computeOffsetInContainerNode(), 1,
+ nonBreakingSpaceString());
document().updateStyleAndLayoutIgnorePendingStylesheets();
}

Powered by Google App Engine
This is Rietveld 408576698