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

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

Issue 1690513002: Editing: Pass failure information of RemoveNodeCommand to ReplaceSelectionCommand. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add a comment Created 4 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/RemoveNodePreservingChildrenCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/RemoveNodePreservingChildrenCommand.cpp b/third_party/WebKit/Source/core/editing/commands/RemoveNodePreservingChildrenCommand.cpp
index 55fb5d766c37b35d9d92a6ef8bdf7f3d07d0eed1..4283ee683e2257eb6ec306749f41734281874e63 100644
--- a/third_party/WebKit/Source/core/editing/commands/RemoveNodePreservingChildrenCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/RemoveNodePreservingChildrenCommand.cpp
@@ -46,11 +46,11 @@ void RemoveNodePreservingChildrenCommand::doApply(EditingState*)
for (auto& currentChild : children) {
RefPtrWillBeRawPtr<Node> child = currentChild.release();
- removeNode(child, m_shouldAssumeContentIsAlwaysEditable);
+ removeNode(child, ASSERT_NO_EDITING_ABORT, m_shouldAssumeContentIsAlwaysEditable);
insertNodeBefore(child.release(), m_node, m_shouldAssumeContentIsAlwaysEditable);
}
}
- removeNode(m_node, m_shouldAssumeContentIsAlwaysEditable);
+ removeNode(m_node, ASSERT_NO_EDITING_ABORT, m_shouldAssumeContentIsAlwaysEditable);
}
DEFINE_TRACE(RemoveNodePreservingChildrenCommand)

Powered by Google App Engine
This is Rietveld 408576698