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

Unified Diff: Source/web/WebAXObject.cpp

Issue 24752002: Cleanup <static_cast>: Switch to toFoo for Accessibility Objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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 | « Source/core/platform/Scrollbar.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebAXObject.cpp
diff --git a/Source/web/WebAXObject.cpp b/Source/web/WebAXObject.cpp
index 0eb76d890c8366ce1ca5704474e5b81a311080c3..3a82c5f8b52c984eaefe3306cbb02b2a12bdb3f5 100644
--- a/Source/web/WebAXObject.cpp
+++ b/Source/web/WebAXObject.cpp
@@ -904,7 +904,7 @@ unsigned WebAXObject::rowIndex() const
if (!m_private->isTableRow())
return 0;
- return static_cast<WebCore::AccessibilityTableRow*>(m_private.get())->rowIndex();
+ return WebCore::toAccessibilityTableRow(m_private.get())->rowIndex();
}
WebAXObject WebAXObject::rowHeader() const
@@ -915,7 +915,7 @@ WebAXObject WebAXObject::rowHeader() const
if (!m_private->isTableRow())
return WebAXObject();
- return WebAXObject(static_cast<WebCore::AccessibilityTableRow*>(m_private.get())->headerObject());
+ return WebAXObject(WebCore::toAccessibilityTableRow(m_private.get())->headerObject());
}
unsigned WebAXObject::columnIndex() const
@@ -926,7 +926,7 @@ unsigned WebAXObject::columnIndex() const
if (m_private->roleValue() != ColumnRole)
return 0;
- return static_cast<WebCore::AccessibilityTableColumn*>(m_private.get())->columnIndex();
+ return WebCore::toAccessibilityTableColumn(m_private.get())->columnIndex();
}
WebAXObject WebAXObject::columnHeader() const
@@ -937,7 +937,7 @@ WebAXObject WebAXObject::columnHeader() const
if (m_private->roleValue() != ColumnRole)
return WebAXObject();
- return WebAXObject(static_cast<WebCore::AccessibilityTableColumn*>(m_private.get())->headerObject());
+ return WebAXObject(WebCore::toAccessibilityTableColumn(m_private.get())->headerObject());
}
unsigned WebAXObject::cellColumnIndex() const
@@ -949,7 +949,7 @@ unsigned WebAXObject::cellColumnIndex() const
return 0;
pair<unsigned, unsigned> columnRange;
- static_cast<WebCore::AccessibilityTableCell*>(m_private.get())->columnIndexRange(columnRange);
+ WebCore::toAccessibilityTableCell(m_private.get())->columnIndexRange(columnRange);
return columnRange.first;
}
@@ -962,7 +962,7 @@ unsigned WebAXObject::cellColumnSpan() const
return 0;
pair<unsigned, unsigned> columnRange;
- static_cast<WebCore::AccessibilityTableCell*>(m_private.get())->columnIndexRange(columnRange);
+ WebCore::toAccessibilityTableCell(m_private.get())->columnIndexRange(columnRange);
return columnRange.second;
}
@@ -975,7 +975,7 @@ unsigned WebAXObject::cellRowIndex() const
return 0;
pair<unsigned, unsigned> rowRange;
- static_cast<WebCore::AccessibilityTableCell*>(m_private.get())->rowIndexRange(rowRange);
+ WebCore::toAccessibilityTableCell(m_private.get())->rowIndexRange(rowRange);
return rowRange.first;
}
@@ -988,7 +988,7 @@ unsigned WebAXObject::cellRowSpan() const
return 0;
pair<unsigned, unsigned> rowRange;
- static_cast<WebCore::AccessibilityTableCell*>(m_private.get())->rowIndexRange(rowRange);
+ WebCore::toAccessibilityTableCell(m_private.get())->rowIndexRange(rowRange);
return rowRange.second;
}
« no previous file with comments | « Source/core/platform/Scrollbar.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698