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

Unified Diff: Source/core/accessibility/AXListBoxOption.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/AXListBoxOption.cpp
diff --git a/Source/core/accessibility/AXListBoxOption.cpp b/Source/core/accessibility/AXListBoxOption.cpp
index e8f82e75c5711379aea177184a9d48303a502bca..2aa6c2e9e363d13d468341d58972dc7f0b1c2c4d 100644
--- a/Source/core/accessibility/AXListBoxOption.cpp
+++ b/Source/core/accessibility/AXListBoxOption.cpp
@@ -60,7 +60,7 @@ bool AXListBoxOption::isEnabled() const
if (!m_optionElement)
return false;
- if (m_optionElement->hasTagName(optgroupTag))
+ if (isHTMLOptGroupElement(*m_optionElement))
return false;
if (equalIgnoringCase(getAttribute(aria_disabledAttr), "true"))
@@ -124,10 +124,7 @@ bool AXListBoxOption::computeAccessibilityIsIgnored() const
bool AXListBoxOption::canSetSelectedAttribute() const
{
- if (!m_optionElement)
- return false;
-
- if (!m_optionElement->hasTagName(optionTag))
+ if (!isHTMLOptionElement(m_optionElement))
return false;
if (m_optionElement->isDisabledFormControl())

Powered by Google App Engine
This is Rietveld 408576698