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

Unified Diff: Source/core/accessibility/AccessibilityRenderObject.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/AccessibilityRenderObject.cpp
diff --git a/Source/core/accessibility/AccessibilityRenderObject.cpp b/Source/core/accessibility/AccessibilityRenderObject.cpp
index e70aaf1d761db15dbcc9634d52eac35e69b0e0db..37b940232fa015d4f7754106cae7dba67b06eb7e 100644
--- a/Source/core/accessibility/AccessibilityRenderObject.cpp
+++ b/Source/core/accessibility/AccessibilityRenderObject.cpp
@@ -2216,7 +2216,7 @@ void AccessibilityRenderObject::addImageMapChildren()
for (Element* current = ElementTraversal::firstWithin(map); current; current = ElementTraversal::next(current, map)) {
// add an <area> element for this child if it has a link
if (isHTMLAreaElement(current) && current->isLink()) {
- AccessibilityImageMapLink* areaObject = static_cast<AccessibilityImageMapLink*>(axObjectCache()->getOrCreate(ImageMapLinkRole));
+ AccessibilityImageMapLink* areaObject = toAccessibilityImageMapLink(axObjectCache()->getOrCreate(ImageMapLinkRole));
areaObject->setHTMLAreaElement(toHTMLAreaElement(current));
areaObject->setHTMLMapElement(map);
areaObject->setParent(this);
« no previous file with comments | « Source/core/accessibility/AccessibilityObject.h ('k') | Source/core/accessibility/AccessibilityScrollView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698