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

Unified Diff: Source/core/accessibility/AXObjectCache.cpp

Issue 18251004: Introduce isHTMLAreaElement and toHTMLAreaElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 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/AXObjectCache.cpp
diff --git a/Source/core/accessibility/AXObjectCache.cpp b/Source/core/accessibility/AXObjectCache.cpp
index 17fb379767942d826f81e73db134cb9961ce49e2..dfec8eb35fc1ef3983ce56deb5090c5b1993846f 100644
--- a/Source/core/accessibility/AXObjectCache.cpp
+++ b/Source/core/accessibility/AXObjectCache.cpp
@@ -160,9 +160,9 @@ AccessibilityObject* AXObjectCache::focusedUIElementForPage(const Page* page)
if (!focusedNode)
focusedNode = focusedDocument;
- if (focusedNode->hasTagName(areaTag))
- return focusedImageMapUIElement(static_cast<HTMLAreaElement*>(focusedNode));
-
+ if (isHTMLAreaElement(focusedNode))
+ return focusedImageMapUIElement(toHTMLAreaElement(focusedNode));
+
AccessibilityObject* obj = focusedNode->document()->axObjectCache()->getOrCreate(focusedNode);
if (!obj)
return 0;
« no previous file with comments | « Source/WebKit/chromium/src/DOMUtilitiesPrivate.cpp ('k') | Source/core/accessibility/AccessibilityRenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698