| Index: Source/core/html/HTMLOptionElement.cpp
|
| diff --git a/Source/core/html/HTMLOptionElement.cpp b/Source/core/html/HTMLOptionElement.cpp
|
| index f2e91136c37ca1a254190d8f3c738f6fd705fe81..ee69cb986321a0a95cf8f8bc25f50d0b4c12a004 100644
|
| --- a/Source/core/html/HTMLOptionElement.cpp
|
| +++ b/Source/core/html/HTMLOptionElement.cpp
|
| @@ -168,6 +168,13 @@ int HTMLOptionElement::index() const
|
| return 0;
|
| }
|
|
|
| +int HTMLOptionElement::listIndex() const
|
| +{
|
| + if (HTMLSelectElement* selectElement = ownerSelectElement())
|
| + return selectElement->listIndexForOption(*this);
|
| + return -1;
|
| +}
|
| +
|
| void HTMLOptionElement::parseAttribute(const QualifiedName& name, const AtomicString& value)
|
| {
|
| if (name == valueAttr) {
|
|
|