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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXListBoxOption.cpp

Issue 2805493002: Boolean properties for Accessibility Object Model Phase 1 (Closed)
Patch Set: Back to previous patchset, ready to land Created 3 years, 7 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: third_party/WebKit/Source/modules/accessibility/AXListBoxOption.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXListBoxOption.cpp b/third_party/WebKit/Source/modules/accessibility/AXListBoxOption.cpp
index aea93ad7247a43fcbab23134284da5ad420ee58a..9a5ee68e9f2db1f6e9603ab0fd1599a957726095 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXListBoxOption.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXListBoxOption.cpp
@@ -28,6 +28,7 @@
#include "modules/accessibility/AXListBoxOption.h"
+#include "core/dom/AccessibleNode.h"
#include "core/html/HTMLOptionElement.h"
#include "core/html/HTMLSelectElement.h"
#include "core/layout/LayoutObject.h"
@@ -82,7 +83,7 @@ bool AXListBoxOption::IsEnabled() const {
if (!GetNode())
return false;
- if (EqualIgnoringASCIICase(GetAttribute(aria_disabledAttr), "true"))
+ if (AOMPropertyOrARIAAttributeIsTrue(AOMBooleanProperty::kDisabled))
return false;
if (ToElement(GetNode())->hasAttribute(disabledAttr))

Powered by Google App Engine
This is Rietveld 408576698