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

Unified Diff: Source/core/accessibility/AccessibilityARIAGridRow.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
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;
« no previous file with comments | « Source/core/accessibility/AccessibilityARIAGridCell.cpp ('k') | Source/core/accessibility/AccessibilityImageMapLink.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698