summaryrefslogtreecommitdiffstats
path: root/WebCore/html/HTMLOptionElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/HTMLOptionElement.cpp')
-rw-r--r--WebCore/html/HTMLOptionElement.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/WebCore/html/HTMLOptionElement.cpp b/WebCore/html/HTMLOptionElement.cpp
index 66968b0..009db47 100644
--- a/WebCore/html/HTMLOptionElement.cpp
+++ b/WebCore/html/HTMLOptionElement.cpp
@@ -79,7 +79,7 @@ const AtomicString& HTMLOptionElement::formControlType() const
String HTMLOptionElement::text() const
{
- return OptionElement::collectOptionText(m_data, this);
+ return OptionElement::collectOptionLabelOrText(m_data, this);
}
void HTMLOptionElement::setText(const String &text, ExceptionCode& ec)
@@ -152,10 +152,10 @@ void HTMLOptionElement::setSelectedState(bool selected)
void HTMLOptionElement::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta)
{
- HTMLSelectElement* select = ownerSelectElement();
- if (select)
- select->childrenChanged(changedByParser);
- HTMLFormControlElement::childrenChanged(changedByParser, beforeChange, afterChange, childCountDelta);
+ HTMLSelectElement* select = ownerSelectElement();
+ if (select)
+ select->childrenChanged(changedByParser);
+ HTMLFormControlElement::childrenChanged(changedByParser, beforeChange, afterChange, childCountDelta);
}
HTMLSelectElement* HTMLOptionElement::ownerSelectElement() const