Index: Source/core/html/HTMLOptionsCollection.cpp |
diff --git a/Source/core/html/HTMLOptionsCollection.cpp b/Source/core/html/HTMLOptionsCollection.cpp |
index 13e9f6c38153c5bef63ade3eb8921637a1a94a17..ea2c28c4463b5731ab89546460dec77196054fd8 100644 |
--- a/Source/core/html/HTMLOptionsCollection.cpp |
+++ b/Source/core/html/HTMLOptionsCollection.cpp |
@@ -75,6 +75,11 @@ void HTMLOptionsCollection::remove(int index) |
toHTMLSelectElement(ownerNode())->remove(index); |
} |
+void HTMLOptionsCollection::remove(HTMLOptionElement* option) |
+{ |
+ return remove(option->index()); |
+} |
+ |
int HTMLOptionsCollection::selectedIndex() const |
{ |
return toHTMLSelectElement(ownerNode())->selectedIndex(); |