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

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

Issue 2615953003: Rename IGNORE_EXCEPTION to IGNORE_EXCEPTION_FOR_TESTING (Closed)
Patch Set: 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/InsertListCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp b/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp
index 8e5b53d600ec95cd11616766f32c10a3ce7b6efa..79fc3a505f87005227f699e43e91cd7f4b41f5c6 100644
--- a/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp
@@ -410,10 +410,11 @@ bool InsertListCommand::doApplyForSingleParagraph(
// inside listNode because moveParagraphWithClones could have removed
// them.
if (rangeStartIsInList && newList)
- currentSelection.setStart(newList, 0, IGNORE_EXCEPTION);
- if (rangeEndIsInList && newList)
+ currentSelection.setStart(newList, 0, IGNORE_EXCEPTION_FOR_TESTING);
+ if (rangeEndIsInList && newList) {
currentSelection.setEnd(newList, Position::lastOffsetInNode(newList),
- IGNORE_EXCEPTION);
+ IGNORE_EXCEPTION_FOR_TESTING);
+ }
setEndingSelection(SelectionInDOMTree::Builder()
.collapse(Position::firstPositionInNode(newList))

Powered by Google App Engine
This is Rietveld 408576698