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

Unified Diff: Source/modules/accessibility/AXNodeObject.cpp

Issue 1012663002: Aria disabled does not apply to descendant elements (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Applied suggestions Created 5 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/modules/accessibility/AXNodeObject.cpp
diff --git a/Source/modules/accessibility/AXNodeObject.cpp b/Source/modules/accessibility/AXNodeObject.cpp
index 75cd4a77849ba1a7e80ddbcd4286a37584464f44..9e36afccc94e001a0296a76b4ec95b7daf6b6881 100644
--- a/Source/modules/accessibility/AXNodeObject.cpp
+++ b/Source/modules/accessibility/AXNodeObject.cpp
@@ -727,7 +727,7 @@ bool AXNodeObject::isClickable() const
bool AXNodeObject::isEnabled() const
{
- if (equalIgnoringCase(getAttribute(aria_disabledAttr), "true"))
+ if (isDescendantOfDisabledParent())
return false;
Node* node = this->node();

Powered by Google App Engine
This is Rietveld 408576698