Index: third_party/WebKit/Source/modules/accessibility/AXObjectImpl.cpp |
diff --git a/third_party/WebKit/Source/modules/accessibility/AXObjectImpl.cpp b/third_party/WebKit/Source/modules/accessibility/AXObjectImpl.cpp |
index 37699ded8eb6daca5aa78529441b7caa1843913c..356be92faa256d5382dc70506d281f896d659a67 100644 |
--- a/third_party/WebKit/Source/modules/accessibility/AXObjectImpl.cpp |
+++ b/third_party/WebKit/Source/modules/accessibility/AXObjectImpl.cpp |
@@ -421,6 +421,42 @@ bool AXObjectImpl::AOMPropertyOrARIAAttributeIsFalse( |
return false; |
} |
+bool AXObjectImpl::HasAOMPropertyOrARIAAttribute(AOMUIntProperty property, |
+ uint32_t& result) const { |
+ Element* element = this->GetElement(); |
+ if (!element) |
+ return false; |
+ |
+ bool is_null = true; |
+ result = |
+ AccessibleNode::GetPropertyOrARIAAttribute(element, property, is_null); |
+ return !is_null; |
+} |
+ |
+bool AXObjectImpl::HasAOMPropertyOrARIAAttribute(AOMIntProperty property, |
+ int32_t& result) const { |
+ Element* element = this->GetElement(); |
+ if (!element) |
+ return false; |
+ |
+ bool is_null = true; |
+ result = |
+ AccessibleNode::GetPropertyOrARIAAttribute(element, property, is_null); |
+ return !is_null; |
+} |
+ |
+bool AXObjectImpl::HasAOMPropertyOrARIAAttribute(AOMFloatProperty property, |
+ float& result) const { |
+ Element* element = this->GetElement(); |
+ if (!element) |
+ return false; |
+ |
+ bool is_null = true; |
+ result = |
+ AccessibleNode::GetPropertyOrARIAAttribute(element, property, is_null); |
+ return !is_null; |
+} |
+ |
bool AXObjectImpl::IsARIATextControl() const { |
return AriaRoleAttribute() == kTextFieldRole || |
AriaRoleAttribute() == kSearchBoxRole || |