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

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

Issue 51743003: Treat inert nodes as aria-hidden instead of aria-disabled. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rename, expectations, etc Created 7 years, 2 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/AXNodeObject.cpp
diff --git a/Source/core/accessibility/AXNodeObject.cpp b/Source/core/accessibility/AXNodeObject.cpp
index 2d5b5f4fa0838cc41df4ecf74d763745f748428c..0b8545050bdb3e44bf358e5548ca0ffb75b187ec 100644
--- a/Source/core/accessibility/AXNodeObject.cpp
+++ b/Source/core/accessibility/AXNodeObject.cpp
@@ -669,7 +669,7 @@ bool AXNodeObject::isEnabled() const
if (!node || !node->isElementNode())
return true;
- return !node->isInert() && !toElement(node)->isDisabledFormControl();
+ return !toElement(node)->isDisabledFormControl();
}
bool AXNodeObject::isIndeterminate() const
@@ -1090,7 +1090,7 @@ static bool shouldUseAccessiblityObjectInnerText(AXObject* obj)
// containers with lots of children.
// Skip hidden children
- if (equalIgnoringCase(obj->getAttribute(aria_hiddenAttr), "true"))
+ if (obj->ariaIsHidden())
return false;
// Skip focusable children, so we don't include the text of links and controls.

Powered by Google App Engine
This is Rietveld 408576698