Index: third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp |
diff --git a/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp b/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp |
index 0c17502098641388c189e5470a9e77f7a43e7779..7edf793630a2c3bdcf3b931f1fbc38aeaa149c7e 100644 |
--- a/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp |
+++ b/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp |
@@ -30,6 +30,7 @@ |
#include "core/HTMLNames.h" |
#include "core/InputTypeNames.h" |
+#include "core/dom/AccessibleNode.h" |
#include "core/dom/Document.h" |
#include "core/dom/TaskRunnerHelper.h" |
#include "core/editing/EditingUtilities.h" |
@@ -1090,8 +1091,10 @@ bool isNodeAriaVisible(Node* node) { |
if (!node->isElementNode()) |
return false; |
- return equalIgnoringASCIICase(toElement(node)->getAttribute(aria_hiddenAttr), |
- "false"); |
+ bool isNull = true; |
+ bool hidden = AccessibleNode::getProperty( |
+ toElement(node), AOMBooleanProperty::kHidden, isNull); |
+ return !isNull && !hidden; |
} |
void AXObjectCacheImpl::postPlatformNotification(AXObject* obj, |