| Index: Source/core/accessibility/AXListBox.cpp
|
| diff --git a/Source/core/accessibility/AXListBox.cpp b/Source/core/accessibility/AXListBox.cpp
|
| index 7037d33910afbe8e558e617f45eb8d23f1c9bd19..6ac49d143c80f01f4c0e26a98d18c2ba9ad7ba90 100644
|
| --- a/Source/core/accessibility/AXListBox.cpp
|
| +++ b/Source/core/accessibility/AXListBox.cpp
|
| @@ -53,15 +53,6 @@ PassRefPtr<AXListBox> AXListBox::create(RenderObject* renderer)
|
| return adoptRef(new AXListBox(renderer));
|
| }
|
|
|
| -bool AXListBox::canSetSelectedChildrenAttribute() const
|
| -{
|
| - Node* selectNode = m_renderer->node();
|
| - if (!selectNode)
|
| - return false;
|
| -
|
| - return !toHTMLSelectElement(selectNode)->isDisabledFormControl();
|
| -}
|
| -
|
| void AXListBox::addChildren()
|
| {
|
| Node* selectNode = m_renderer->node();
|
| @@ -81,47 +72,6 @@ void AXListBox::addChildren()
|
| }
|
| }
|
|
|
| -void AXListBox::setSelectedChildren(AccessibilityChildrenVector& children)
|
| -{
|
| - if (!canSetSelectedChildrenAttribute())
|
| - return;
|
| -
|
| - Node* selectNode = m_renderer->node();
|
| - if (!selectNode)
|
| - return;
|
| -
|
| - // disable any selected options
|
| - unsigned length = m_children.size();
|
| - for (unsigned i = 0; i < length; i++) {
|
| - AXListBoxOption* listBoxOption = toAXListBoxOption(m_children[i].get());
|
| - if (listBoxOption->isSelected())
|
| - listBoxOption->setSelected(false);
|
| - }
|
| -
|
| - length = children.size();
|
| - for (unsigned i = 0; i < length; i++) {
|
| - AXObject* obj = children[i].get();
|
| - if (obj->roleValue() != ListBoxOptionRole)
|
| - continue;
|
| -
|
| - toAXListBoxOption(obj)->setSelected(true);
|
| - }
|
| -}
|
| -
|
| -void AXListBox::selectedChildren(AccessibilityChildrenVector& result)
|
| -{
|
| - ASSERT(result.isEmpty());
|
| -
|
| - if (!hasChildren())
|
| - addChildren();
|
| -
|
| - unsigned length = m_children.size();
|
| - for (unsigned i = 0; i < length; i++) {
|
| - if (toAXListBoxOption(m_children[i].get())->isSelected())
|
| - result.append(m_children[i]);
|
| - }
|
| -}
|
| -
|
| AXObject* AXListBox::listBoxOptionAXObject(HTMLElement* element) const
|
| {
|
| // skip hr elements
|
|
|