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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp

Issue 1373813002: Remove unused methods AXLayoutObject::ariaSelectedrows() and AXLayoutObject::ariaListboxSelectedChi… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 | « third_party/WebKit/Source/modules/accessibility/AXLayoutObject.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp b/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
index 90193dd816bd579273edaec8468f09823112139e..80cd90ac9fb501bf0a87021163bbd09f52b3ee56 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
@@ -2246,20 +2246,6 @@ AXObject* AXLayoutObject::treeAncestorDisallowingChild() const
return 0;
}
-void AXLayoutObject::ariaListboxSelectedChildren(AccessibilityChildrenVector& result)
-{
- bool isMulti = isMultiSelectable();
-
- for (const auto& child : children()) {
- // Every child should have aria-role option, and if so, check for selected attribute/state.
- if (child->isSelected() && child->ariaRoleAttribute() == ListBoxOptionRole) {
- result.append(child);
- if (!isMulti)
- return;
- }
- }
-}
-
bool AXLayoutObject::nodeIsTextControl(const Node* node) const
{
if (!node)
@@ -2554,35 +2540,6 @@ void AXLayoutObject::addRemoteSVGChildren()
}
}
-void AXLayoutObject::ariaSelectedRows(AccessibilityChildrenVector& result)
-{
- // Get all the rows.
- AccessibilityChildrenVector allRows;
- if (isTree())
- ariaTreeRows(allRows);
- else if (isAXTable() && toAXTable(this)->supportsSelectedRows())
- allRows = toAXTable(this)->rows();
-
- // Determine which rows are selected.
- bool isMulti = isMultiSelectable();
-
- // Prefer active descendant over aria-selected.
- AXObject* activeDesc = activeDescendant();
- if (activeDesc && (activeDesc->isTreeItem() || activeDesc->isTableRow())) {
- result.append(activeDesc);
- if (!isMulti)
- return;
- }
-
- for (const auto& row : allRows) {
- if (row->isSelected()) {
- result.append(row);
- if (!isMulti)
- break;
- }
- }
-}
-
bool AXLayoutObject::elementAttributeValue(const QualifiedName& attributeName) const
{
if (!m_layoutObject)
« no previous file with comments | « third_party/WebKit/Source/modules/accessibility/AXLayoutObject.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698