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

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

Issue 1435113003: Make use of new AX name calc in Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix issue with ariaTextAlternative Created 5 years, 1 month 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
Index: third_party/WebKit/Source/modules/accessibility/AXTableCell.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXTableCell.cpp b/third_party/WebKit/Source/modules/accessibility/AXTableCell.cpp
index 2d55d6e2211a76544b9549d964731a67b9a6ec25..ac5baba96f0b272100f355d331f5105945e286af 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXTableCell.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXTableCell.cpp
@@ -218,41 +218,4 @@ SortDirection AXTableCell::sortDirection() const
return SortDirectionUndefined;
}
-AXObject* AXTableCell::deprecatedTitleUIElement() const
-{
- // Try to find if the first cell in this row is a <th>. If it is,
- // then it can act as the title ui element. (This is only in the
- // case when the table is not appearing as an AXTable.)
- if (isTableCell() || !m_layoutObject || !m_layoutObject->isTableCell())
- return 0;
-
- // Table cells that are th cannot have title ui elements, since by definition
- // they are title ui elements
- if (isTableHeaderCell())
- return 0;
-
- LayoutTableCell* layoutCell = toLayoutTableCell(m_layoutObject);
-
- // If this cell is in the first column, there is no need to continue.
- int col = layoutCell->col();
- if (!col)
- return 0;
-
- int row = layoutCell->rowIndex();
-
- LayoutTableSection* section = layoutCell->section();
- if (!section)
- return 0;
-
- LayoutTableCell* headerCell = section->primaryCellAt(row, 0);
- if (!headerCell || headerCell == layoutCell)
- return 0;
-
- Node* cellElement = headerCell->node();
- if (!cellElement || !cellElement->hasTagName(thTag))
- return 0;
-
- return axObjectCache().getOrCreate(headerCell);
-}
-
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698