Index: Source/web/WebAXObject.cpp |
diff --git a/Source/web/WebAXObject.cpp b/Source/web/WebAXObject.cpp |
index cdf0aad450d4ff5b97349bb71ff986e975ac5fa2..0eb76d890c8366ce1ca5704474e5b81a311080c3 100644 |
--- a/Source/web/WebAXObject.cpp |
+++ b/Source/web/WebAXObject.cpp |
@@ -829,7 +829,7 @@ unsigned WebAXObject::columnCount() const |
if (!m_private->isAccessibilityTable()) |
return 0; |
- return static_cast<WebCore::AccessibilityTable*>(m_private.get())->columnCount(); |
+ return toAccessibilityTable(m_private.get())->columnCount(); |
} |
unsigned WebAXObject::rowCount() const |
@@ -840,7 +840,7 @@ unsigned WebAXObject::rowCount() const |
if (!m_private->isAccessibilityTable()) |
return 0; |
- return static_cast<WebCore::AccessibilityTable*>(m_private.get())->rowCount(); |
+ return toAccessibilityTable(m_private.get())->rowCount(); |
} |
WebAXObject WebAXObject::cellForColumnAndRow(unsigned column, unsigned row) const |
@@ -851,7 +851,7 @@ WebAXObject WebAXObject::cellForColumnAndRow(unsigned column, unsigned row) cons |
if (!m_private->isAccessibilityTable()) |
return WebAXObject(); |
- WebCore::AccessibilityTableCell* cell = static_cast<WebCore::AccessibilityTable*>(m_private.get())->cellForColumnAndRow(column, row); |
+ WebCore::AccessibilityTableCell* cell = toAccessibilityTable(m_private.get())->cellForColumnAndRow(column, row); |
return WebAXObject(static_cast<WebCore::AccessibilityObject*>(cell)); |
} |
@@ -863,7 +863,7 @@ WebAXObject WebAXObject::headerContainerObject() const |
if (!m_private->isAccessibilityTable()) |
return WebAXObject(); |
- return WebAXObject(static_cast<WebCore::AccessibilityTable*>(m_private.get())->headerContainer()); |
+ return WebAXObject(toAccessibilityTable(m_private.get())->headerContainer()); |
} |
WebAXObject WebAXObject::rowAtIndex(unsigned rowIndex) const |
@@ -874,7 +874,7 @@ WebAXObject WebAXObject::rowAtIndex(unsigned rowIndex) const |
if (!m_private->isAccessibilityTable()) |
return WebAXObject(); |
- const AccessibilityObject::AccessibilityChildrenVector& rows = static_cast<WebCore::AccessibilityTable*>(m_private.get())->rows(); |
+ const AccessibilityObject::AccessibilityChildrenVector& rows = toAccessibilityTable(m_private.get())->rows(); |
if (rowIndex < rows.size()) |
return WebAXObject(rows[rowIndex]); |
@@ -889,7 +889,7 @@ WebAXObject WebAXObject::columnAtIndex(unsigned columnIndex) const |
if (!m_private->isAccessibilityTable()) |
return WebAXObject(); |
- const AccessibilityObject::AccessibilityChildrenVector& columns = static_cast<WebCore::AccessibilityTable*>(m_private.get())->columns(); |
+ const AccessibilityObject::AccessibilityChildrenVector& columns = toAccessibilityTable(m_private.get())->columns(); |
if (columnIndex < columns.size()) |
return WebAXObject(columns[columnIndex]); |