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

Unified Diff: third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.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/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 cb59bcd592de2af76f90e967c1fe13a58baa7d8e..140473ac1aee7ded81f818fb2262597e96bd84c0 100644
--- a/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp
@@ -752,9 +752,9 @@ void DeleteSelectionCommand::fixupWhitespace() {
DCHECK(!textNode->layoutObject() ||
textNode->layoutObject()->style()->collapseWhiteSpace())
<< textNode;
- replaceTextInNodePreservingMarkers(
- textNode, m_leadingWhitespace.computeOffsetInContainerNode(), 1,
- nonBreakingSpaceString());
+ replaceTextInNode(textNode,
+ m_leadingWhitespace.computeOffsetInContainerNode(), 1,
+ nonBreakingSpaceString());
}
if (m_trailingWhitespace.isNotNull() &&
!isRenderedCharacter(m_trailingWhitespace) &&
@@ -763,9 +763,9 @@ void DeleteSelectionCommand::fixupWhitespace() {
DCHECK(!textNode->layoutObject() ||
textNode->layoutObject()->style()->collapseWhiteSpace())
<< textNode;
- replaceTextInNodePreservingMarkers(
- textNode, m_trailingWhitespace.computeOffsetInContainerNode(), 1,
- nonBreakingSpaceString());
+ replaceTextInNode(textNode,
+ m_trailingWhitespace.computeOffsetInContainerNode(), 1,
+ nonBreakingSpaceString());
}
}

Powered by Google App Engine
This is Rietveld 408576698