Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(447)

Unified Diff: Source/core/accessibility/AXListBox.cpp

Issue 243083002: Remove more dead code from accessibility/ folder (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/accessibility/AXListBox.h ('k') | Source/core/accessibility/AXObject.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/core/accessibility/AXListBox.h ('k') | Source/core/accessibility/AXObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698