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

Unified Diff: third_party/WebKit/Source/core/editing/commands/InsertNodeBeforeCommand.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/InsertNodeBeforeCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/InsertNodeBeforeCommand.cpp b/third_party/WebKit/Source/core/editing/commands/InsertNodeBeforeCommand.cpp
index 7230115767e0c4fd15580d7466a8402abfb8ec0d..77a0e8868a6e0cfeeb02709a9a822f258d0ecefd 100644
--- a/third_party/WebKit/Source/core/editing/commands/InsertNodeBeforeCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/InsertNodeBeforeCommand.cpp
@@ -58,7 +58,8 @@ void InsertNodeBeforeCommand::doApply(EditingState*) {
return;
DCHECK(hasEditableStyle(*parent)) << parent;
- parent->insertBefore(m_insertChild.get(), m_refChild.get(), IGNORE_EXCEPTION);
+ parent->insertBefore(m_insertChild.get(), m_refChild.get(),
+ IGNORE_EXCEPTION_FOR_TESTING);
}
void InsertNodeBeforeCommand::doUnapply() {
@@ -66,7 +67,7 @@ void InsertNodeBeforeCommand::doUnapply() {
if (!hasEditableStyle(*m_insertChild))
return;
- m_insertChild->remove(IGNORE_EXCEPTION);
+ m_insertChild->remove(IGNORE_EXCEPTION_FOR_TESTING);
}
DEFINE_TRACE(InsertNodeBeforeCommand) {

Powered by Google App Engine
This is Rietveld 408576698