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

Unified Diff: Source/core/accessibility/AccessibilityMenuList.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
Index: Source/core/accessibility/AccessibilityMenuList.cpp
diff --git a/Source/core/accessibility/AccessibilityMenuList.cpp b/Source/core/accessibility/AccessibilityMenuList.cpp
index 0cdb6c826234d6994b6a2291ece0072d6377e572..9c282f7630986c8a08f80ada65ac77e8cf16d1d1 100644
--- a/Source/core/accessibility/AccessibilityMenuList.cpp
+++ b/Source/core/accessibility/AccessibilityMenuList.cpp
@@ -106,7 +106,7 @@ void AccessibilityMenuList::didUpdateActiveOption(int optionIndex)
ASSERT(childObjects[0]->isMenuListPopup());
if (childObjects[0]->isMenuListPopup()) {
- if (AccessibilityMenuListPopup* popup = static_cast<AccessibilityMenuListPopup*>(childObjects[0].get()))
+ if (AccessibilityMenuListPopup* popup = toAccessibilityMenuListPopup(childObjects[0].get()))
popup->didUpdateActiveOption(optionIndex);
}
}
« no previous file with comments | « Source/core/accessibility/AccessibilityListBoxOption.h ('k') | Source/core/accessibility/AccessibilityMenuListOption.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698