Index: Source/core/accessibility/AXTable.cpp |
diff --git a/Source/core/accessibility/AXTable.cpp b/Source/core/accessibility/AXTable.cpp |
index f40655cf7bb3e6a6d78d97b99ffc87ff047d94fb..d1c8f77ba3a435399f362a6ef1004f58a833c5b7 100644 |
--- a/Source/core/accessibility/AXTable.cpp |
+++ b/Source/core/accessibility/AXTable.cpp |
@@ -145,8 +145,7 @@ bool AXTable::isDataTable() const |
if (elementHasAriaRole(rowElement)) |
return false; |
if (rowElement->hasTagName(trTag)) { |
- HTMLTableRowElement* row = static_cast<HTMLTableRowElement*>(rowElement); |
- RefPtrWillBeRawPtr<HTMLCollection> cells = row->cells(); |
+ RefPtrWillBeRawPtr<HTMLCollection> cells = toHTMLTableRowElement(rowElement)->cells(); |
for (unsigned cellIndex = 0; cellIndex < cells->length(); ++cellIndex) { |
if (elementHasAriaRole(cells->item(cellIndex))) |
return false; |