Index: Source/core/accessibility/AccessibilityARIAGridRow.cpp |
diff --git a/Source/core/accessibility/AccessibilityARIAGridRow.cpp b/Source/core/accessibility/AccessibilityARIAGridRow.cpp |
index a9f14c8a2ce336ccf4d565f939036cfa379bf4d7..a7ddd2682b165ad4cf3f770948b35c36c030efdf 100644 |
--- a/Source/core/accessibility/AccessibilityARIAGridRow.cpp |
+++ b/Source/core/accessibility/AccessibilityARIAGridRow.cpp |
@@ -73,7 +73,7 @@ void AccessibilityARIAGridRow::disclosedRows(AccessibilityChildrenVector& disclo |
return; |
unsigned level = hierarchicalLevel(); |
- AccessibilityChildrenVector& allRows = static_cast<AccessibilityTable*>(parent)->rows(); |
+ AccessibilityChildrenVector& allRows = toAccessibilityTable(parent)->rows(); |
int rowCount = allRows.size(); |
for (int k = index + 1; k < rowCount; ++k) { |
AccessibilityObject* row = allRows[k].get(); |
@@ -100,7 +100,7 @@ AccessibilityObject* AccessibilityARIAGridRow::disclosedByRow() const |
// Search for the previous row that matches the correct level. |
int index = rowIndex(); |
- AccessibilityChildrenVector& allRows = static_cast<AccessibilityTable*>(parent)->rows(); |
+ AccessibilityChildrenVector& allRows = toAccessibilityTable(parent)->rows(); |
int rowCount = allRows.size(); |
if (index >= rowCount) |
return 0; |