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

Unified Diff: Source/web/WebAXObject.cpp

Issue 24253004: Cleanup: Start using toFoo methods as part of newly adopted coding guideline. (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/svg/SVGFontFaceElement.cpp ('k') | Source/web/WebPluginContainerImpl.cpp » ('j') | 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 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]);
« no previous file with comments | « Source/core/svg/SVGFontFaceElement.cpp ('k') | Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698