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); |