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

Unified Diff: Source/core/accessibility/AXObject.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/AXObject.cpp
diff --git a/Source/core/accessibility/AXObject.cpp b/Source/core/accessibility/AXObject.cpp
index 702f279a43135875b16a52b8096b73b6b7b852b5..7a1c238d83d7ca0c579a2f7a9458e0db2e018f52 100644
--- a/Source/core/accessibility/AXObject.cpp
+++ b/Source/core/accessibility/AXObject.cpp
@@ -972,6 +972,8 @@ bool AXObject::ariaIsHidden() const
{
if (equalIgnoringCase(getAttribute(aria_hiddenAttr), "true"))
return true;
+ if (node() && node()->isInert())
+ return true;
for (AXObject* object = parentObject(); object; object = object->parentObject()) {
if (equalIgnoringCase(object->getAttribute(aria_hiddenAttr), "true"))
« Source/core/accessibility/AXObject.h ('K') | « Source/core/accessibility/AXObject.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698