| Index: Source/core/html/HTMLOptionElement.cpp
|
| diff --git a/Source/core/html/HTMLOptionElement.cpp b/Source/core/html/HTMLOptionElement.cpp
|
| index 957ae9216db6229e7f507df06431369f351d0a06..21578421f6fcc6b1ea70b1206d591aff5ea18386 100644
|
| --- a/Source/core/html/HTMLOptionElement.cpp
|
| +++ b/Source/core/html/HTMLOptionElement.cpp
|
| @@ -194,12 +194,10 @@ int HTMLOptionElement::index() const
|
|
|
| void HTMLOptionElement::parseAttribute(const QualifiedName& name, const AtomicString& value)
|
| {
|
| -#if ENABLE(DATALIST_ELEMENT)
|
| if (name == valueAttr) {
|
| if (HTMLDataListElement* dataList = ownerDataListElement())
|
| dataList->optionElementChildrenChanged();
|
| } else
|
| -#endif
|
| if (name == disabledAttr) {
|
| bool oldDisabled = m_disabled;
|
| m_disabled = !value.isNull();
|
| @@ -265,17 +263,14 @@ void HTMLOptionElement::setSelectedState(bool selected)
|
|
|
| void HTMLOptionElement::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta)
|
| {
|
| -#if ENABLE(DATALIST_ELEMENT)
|
| if (HTMLDataListElement* dataList = ownerDataListElement())
|
| dataList->optionElementChildrenChanged();
|
| else
|
| -#endif
|
| if (HTMLSelectElement* select = ownerSelectElement())
|
| select->optionElementChildrenChanged();
|
| HTMLElement::childrenChanged(changedByParser, beforeChange, afterChange, childCountDelta);
|
| }
|
|
|
| -#if ENABLE(DATALIST_ELEMENT)
|
| HTMLDataListElement* HTMLOptionElement::ownerDataListElement() const
|
| {
|
| for (ContainerNode* parent = parentNode(); parent ; parent = parent->parentNode()) {
|
| @@ -284,7 +279,6 @@ HTMLDataListElement* HTMLOptionElement::ownerDataListElement() const
|
| }
|
| return 0;
|
| }
|
| -#endif
|
|
|
| HTMLSelectElement* HTMLOptionElement::ownerSelectElement() const
|
| {
|
|
|