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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp

Issue 2973973002: Implement AccessibleNode.hasPopUp for Accessibility Object Model phase 1 (Closed)
Patch Set: Fix handling of aria-haspopup=false Created 3 years, 5 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/AXLayoutObject.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp b/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
index a0d2f7aed90610ef88098ffcf3d115d1523211d4..3868b615a8121a9c22891ae1b84024b51d9a026e 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
@@ -1279,7 +1279,11 @@ void AXLayoutObject::AriaLabelledbyElements(AXObjectVector& labelledby) const {
}
bool AXLayoutObject::AriaHasPopup() const {
- return ElementAttributeValue(aria_haspopupAttr);
+ const AtomicString& has_popup =
+ GetAOMPropertyOrARIAAttribute(AOMStringProperty::kHasPopUp);
+
+ return !has_popup.IsNull() && !has_popup.IsEmpty() &&
+ !EqualIgnoringASCIICase(has_popup, "false");
}
bool AXLayoutObject::AriaRoleHasPresentationalChildren() const {

Powered by Google App Engine
This is Rietveld 408576698