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

Unified Diff: Source/core/page/DOMSelection.cpp

Issue 18548003: Rename ExceptionCode constants to use the names in the spec (2/3) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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
« no previous file with comments | « Source/core/loader/appcache/DOMApplicationCache.cpp ('k') | Source/core/page/DOMWindow.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/DOMSelection.cpp
diff --git a/Source/core/page/DOMSelection.cpp b/Source/core/page/DOMSelection.cpp
index 5e02f59dcf723ced5532666d0bcbf6eaeff27614..71ec85c24feca061acaf3a8166e5bb35509f8190 100644
--- a/Source/core/page/DOMSelection.cpp
+++ b/Source/core/page/DOMSelection.cpp
@@ -216,7 +216,7 @@ void DOMSelection::collapseToEnd(ExceptionCode& ec)
const VisibleSelection& selection = m_frame->selection()->selection();
if (selection.isNone()) {
- ec = INVALID_STATE_ERR;
+ ec = InvalidStateError;
return;
}
@@ -231,7 +231,7 @@ void DOMSelection::collapseToStart(ExceptionCode& ec)
const VisibleSelection& selection = m_frame->selection()->selection();
if (selection.isNone()) {
- ec = INVALID_STATE_ERR;
+ ec = InvalidStateError;
return;
}
@@ -337,7 +337,7 @@ void DOMSelection::extend(Node* node, int offset, ExceptionCode& ec)
return;
if (!node) {
- ec = TYPE_MISMATCH_ERR;
+ ec = TypeMismatchError;
return;
}
« no previous file with comments | « Source/core/loader/appcache/DOMApplicationCache.cpp ('k') | Source/core/page/DOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698