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

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

Issue 2615953003: Rename IGNORE_EXCEPTION to IGNORE_EXCEPTION_FOR_TESTING (Closed)
Patch Set: temp Created 3 years, 11 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/RemoveNodeCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/RemoveNodeCommand.cpp b/third_party/WebKit/Source/core/editing/commands/RemoveNodeCommand.cpp
index 4a4f66c9bdcd5376fe0d5205b38c1d8e993aaa31..6697d33939965e8bd960ac60bf6a2b3fa5fa9038 100644
--- a/third_party/WebKit/Source/core/editing/commands/RemoveNodeCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/RemoveNodeCommand.cpp
@@ -56,7 +56,7 @@ void RemoveNodeCommand::doApply(EditingState* editingState) {
m_parent = parent;
m_refChild = m_node->nextSibling();
- m_node->remove(IGNORE_EXCEPTION);
+ m_node->remove(IGNORE_EXCEPTION_FOR_TESTING);
// Node::remove dispatch synchronous events such as IFRAME unload events,
// and event handlers may break the document. We check the document state
// here in order to prevent further processing in bad situation.
@@ -70,7 +70,7 @@ void RemoveNodeCommand::doUnapply() {
if (!parent || !hasEditableStyle(*parent))
return;
- parent->insertBefore(m_node.get(), refChild, IGNORE_EXCEPTION);
+ parent->insertBefore(m_node.get(), refChild, IGNORE_EXCEPTION_FOR_TESTING);
}
DEFINE_TRACE(RemoveNodeCommand) {

Powered by Google App Engine
This is Rietveld 408576698