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

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

Issue 404403002: Have HTMLTableRowsCollection::item() return an HTMLTableRowElement* (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | « no previous file | Source/core/html/HTMLTableRowsCollection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/accessibility/AXTable.cpp
diff --git a/Source/core/accessibility/AXTable.cpp b/Source/core/accessibility/AXTable.cpp
index ba4b9e01c2069a5ceb15eeb2c35a3318cc74da59..f50097dc18c5f417da4458e27a87ec517fecb4dd 100644
--- a/Source/core/accessibility/AXTable.cpp
+++ b/Source/core/accessibility/AXTable.cpp
@@ -141,15 +141,13 @@ bool AXTable::isDataTable() const
RefPtrWillBeRawPtr<HTMLTableRowsCollection> rows = tableElement->rows();
unsigned rowCount = rows->length();
for (unsigned rowIndex = 0; rowIndex < rowCount; ++rowIndex) {
- Element* rowElement = rows->item(rowIndex);
+ HTMLTableRowElement* rowElement = rows->item(rowIndex);
if (elementHasAriaRole(rowElement))
return false;
- if (isHTMLTableRowElement(*rowElement)) {
- RefPtrWillBeRawPtr<HTMLCollection> cells = toHTMLTableRowElement(rowElement)->cells();
- for (unsigned cellIndex = 0; cellIndex < cells->length(); ++cellIndex) {
- if (elementHasAriaRole(cells->item(cellIndex)))
- return false;
- }
+ RefPtrWillBeRawPtr<HTMLCollection> cells = rowElement->cells();
+ for (unsigned cellIndex = 0; cellIndex < cells->length(); ++cellIndex) {
+ if (elementHasAriaRole(cells->item(cellIndex)))
+ return false;
}
}
« no previous file with comments | « no previous file | Source/core/html/HTMLTableRowsCollection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698