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

Unified Diff: Source/core/accessibility/AXARIAGridRow.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/AXARIAGridRow.h ('k') | Source/core/accessibility/AXList.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/accessibility/AXARIAGridRow.cpp
diff --git a/Source/core/accessibility/AXARIAGridRow.cpp b/Source/core/accessibility/AXARIAGridRow.cpp
index 3494130b4fe8c59541276f19455fef2762c62f85..e8e487a99448a62e4e2df045b1e03b074730b5b0 100644
--- a/Source/core/accessibility/AXARIAGridRow.cpp
+++ b/Source/core/accessibility/AXARIAGridRow.cpp
@@ -57,62 +57,6 @@ bool AXARIAGridRow::isARIATreeGridRow() const
return parent->ariaRoleAttribute() == TreeGridRole;
}
-void AXARIAGridRow::disclosedRows(AccessibilityChildrenVector& disclosedRows)
-{
- // The contiguous disclosed rows will be the rows in the table that
- // have an aria-level of plus 1 from this row.
- AXObject* parent = parentObjectUnignored();
- if (!parent || !parent->isAXTable())
- return;
-
- // Search for rows that match the correct level.
- // Only take the subsequent rows from this one that are +1 from this row's level.
- int index = rowIndex();
- if (index < 0)
- return;
-
- unsigned level = hierarchicalLevel();
- AccessibilityChildrenVector& allRows = toAXTable(parent)->rows();
- int rowCount = allRows.size();
- for (int k = index + 1; k < rowCount; ++k) {
- AXObject* row = allRows[k].get();
- // Stop at the first row that doesn't match the correct level.
- if (row->hierarchicalLevel() != level + 1)
- break;
-
- disclosedRows.append(row);
- }
-}
-
-AXObject* AXARIAGridRow::disclosedByRow() const
-{
- // The row that discloses this one is the row in the table
- // that is aria-level subtract 1 from this row.
- AXObject* parent = parentObjectUnignored();
- if (!parent || !parent->isAXTable())
- return 0;
-
- // If the level is 1 or less, than nothing discloses this row.
- unsigned level = hierarchicalLevel();
- if (level <= 1)
- return 0;
-
- // Search for the previous row that matches the correct level.
- int index = rowIndex();
- AccessibilityChildrenVector& allRows = toAXTable(parent)->rows();
- int rowCount = allRows.size();
- if (index >= rowCount)
- return 0;
-
- for (int k = index - 1; k >= 0; --k) {
- AXObject* row = allRows[k].get();
- if (row->hierarchicalLevel() == level - 1)
- return row;
- }
-
- return 0;
-}
-
AXObject* AXARIAGridRow::headerObject()
{
AccessibilityChildrenVector rowChildren = children();
« no previous file with comments | « Source/core/accessibility/AXARIAGridRow.h ('k') | Source/core/accessibility/AXList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698