Index: Source/modules/accessibility/AXNodeObject.cpp |
diff --git a/Source/modules/accessibility/AXNodeObject.cpp b/Source/modules/accessibility/AXNodeObject.cpp |
index eb02857b3fe1f79559c0f342351ea1475c4c8600..0ca0735df4737ee462568d60ae0d313f271b30c8 100644 |
--- a/Source/modules/accessibility/AXNodeObject.cpp |
+++ b/Source/modules/accessibility/AXNodeObject.cpp |
@@ -951,6 +951,20 @@ unsigned AXNodeObject::hierarchicalLevel() const |
return level; |
} |
+String AXNodeObject::ariaAutoComplete() const |
+{ |
+ if (roleValue() != ComboBoxRole && roleValue() != TextAreaRole) |
+ return String(); |
+ |
+ const AtomicString& ariaAutoComplete = getAttribute(aria_autocompleteAttr); |
+ |
+ if (ariaAutoComplete == "inline" || ariaAutoComplete == "list" |
dmazzoni
2014/12/10 18:20:00
I think this needs to use equalsIgnoringCase inste
|
+ || ariaAutoComplete == "both") |
+ return ariaAutoComplete; |
+ |
+ return String(); |
+} |
+ |
String AXNodeObject::text() const |
{ |
// If this is a user defined static text, use the accessible name computation. |