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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.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/AXObjectCacheImpl.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp b/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
index 1278b64ec79be70410791fb5960d36ef69e539c4..fb07f28b4abfafacda7581fc879b9c700d00c7a9 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"
@@ -1099,8 +1100,10 @@ bool IsNodeAriaVisible(Node* node) {
if (!node->IsElementNode())
return false;
- return EqualIgnoringASCIICase(ToElement(node)->getAttribute(aria_hiddenAttr),
- "false");
+ bool is_null = true;
+ bool hidden = AccessibleNode::GetPropertyOrARIAAttribute(
+ ToElement(node), AOMBooleanProperty::kHidden, is_null);
+ return !is_null && !hidden;
}
void AXObjectCacheImpl::PostPlatformNotification(AXObjectImpl* obj,

Powered by Google App Engine
This is Rietveld 408576698