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

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

Issue 192413002: Use new is*Element() helper functions in accessibility code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/AXMenuListPopup.cpp
diff --git a/Source/core/accessibility/AXMenuListPopup.cpp b/Source/core/accessibility/AXMenuListPopup.cpp
index 145792aa05ffb568888c281b1f3d35a92da1811d..b5641a5d497bb35b50e7137526c939098f7c2a75 100644
--- a/Source/core/accessibility/AXMenuListPopup.cpp
+++ b/Source/core/accessibility/AXMenuListPopup.cpp
@@ -66,7 +66,8 @@ bool AXMenuListPopup::computeAccessibilityIsIgnored() const
AXMenuListOption* AXMenuListPopup::menuListOptionAXObject(HTMLElement* element) const
{
- if (!element->hasTagName(optionTag))
+ ASSERT(element);
+ if (!isHTMLOptionElement(*element))
return 0;
AXObject* object = document()->axObjectCache()->getOrCreate(MenuListOptionRole);

Powered by Google App Engine
This is Rietveld 408576698