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

Unified Diff: Source/core/html/HTMLOptionsCollection.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/html/HTMLMediaElement.cpp ('k') | Source/core/html/HTMLSelectElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLOptionsCollection.cpp
diff --git a/Source/core/html/HTMLOptionsCollection.cpp b/Source/core/html/HTMLOptionsCollection.cpp
index b8284faaf41141cce4a4c4e0e490873a2aba4522..66ea1ed07a43923458829a12ee6d6c071b04ea8b 100644
--- a/Source/core/html/HTMLOptionsCollection.cpp
+++ b/Source/core/html/HTMLOptionsCollection.cpp
@@ -50,7 +50,7 @@ void HTMLOptionsCollection::add(PassRefPtr<HTMLOptionElement> element, int index
HTMLOptionElement* newOption = element.get();
if (!newOption) {
- ec = TYPE_MISMATCH_ERR;
+ ec = TypeMismatchError;
return;
}
@@ -119,7 +119,7 @@ bool HTMLOptionsCollection::anonymousIndexedSetter(unsigned index, PassRefPtr<HT
{
HTMLSelectElement* base = toHTMLSelectElement(ownerNode());
if (!value) {
- ec = TYPE_MISMATCH_ERR;
+ ec = TypeMismatchError;
return true;
}
base->setOption(index, value.get(), ec);
« no previous file with comments | « Source/core/html/HTMLMediaElement.cpp ('k') | Source/core/html/HTMLSelectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698