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

Unified Diff: Source/core/accessibility/AccessibilityMenuList.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/AccessibilityMenuList.cpp
diff --git a/Source/core/accessibility/AccessibilityMenuList.cpp b/Source/core/accessibility/AccessibilityMenuList.cpp
index 46dd227a98eb3cfff580b669c6f38dbc3f9772a3..0cdb6c826234d6994b6a2291ece0072d6377e572 100644
--- a/Source/core/accessibility/AccessibilityMenuList.cpp
+++ b/Source/core/accessibility/AccessibilityMenuList.cpp
@@ -44,7 +44,7 @@ PassRefPtr<AccessibilityMenuList> AccessibilityMenuList::create(RenderMenuList*
bool AccessibilityMenuList::press() const
{
- RenderMenuList* menuList = static_cast<RenderMenuList*>(m_renderer);
+ RenderMenuList* menuList = toRenderMenuList(m_renderer);
if (menuList->popupIsVisible())
menuList->hidePopup();
else
@@ -62,7 +62,7 @@ void AccessibilityMenuList::addChildren()
if (!list)
return;
- static_cast<AccessibilityMockObject*>(list)->setParent(this);
+ toAccessibilityMockObject(list)->setParent(this);
if (list->accessibilityIsIgnored()) {
cache->remove(list->axObjectID());
return;
@@ -84,7 +84,7 @@ void AccessibilityMenuList::childrenChanged()
bool AccessibilityMenuList::isCollapsed() const
{
- return !static_cast<RenderMenuList*>(m_renderer)->popupIsVisible();
+ return !toRenderMenuList(m_renderer)->popupIsVisible();
}
bool AccessibilityMenuList::canSetFocusAttribute() const
« no previous file with comments | « Source/core/accessibility/AccessibilityImageMapLink.cpp ('k') | Source/core/accessibility/AccessibilityRenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698