AX: Implement AutoFill Available attribute for a text field
authorcfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 Mar 2016 16:57:38 +0000 (16:57 +0000)
committercfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 Mar 2016 16:57:38 +0000 (16:57 +0000)
https://bugs.webkit.org/show_bug.cgi?id=155567

Reviewed by Darin Adler.

This file was left out of original commit accidentally.

* accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::addTextFieldChildren):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@198425 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/accessibility/AccessibilityRenderObject.cpp

index 60894fe..be7899b 100644 (file)
@@ -1,3 +1,15 @@
+2016-03-18  Chris Fleizach  <cfleizach@apple.com>
+
+        AX: Implement AutoFill Available attribute for a text field
+        https://bugs.webkit.org/show_bug.cgi?id=155567
+
+        Reviewed by Darin Adler.
+
+        This file was left out of original commit accidentally.
+
+        * accessibility/AccessibilityRenderObject.cpp:
+        (WebCore::AccessibilityRenderObject::addTextFieldChildren):
+
 2016-03-18  Csaba Osztrogon√°c  <ossy@webkit.org>
 
         [Mac][cmake] Unreviewed speculative buildfix after r197956. Just for fun.
index be4cf9b..1abc457 100644 (file)
@@ -2931,6 +2931,9 @@ void AccessibilityRenderObject::addTextFieldChildren()
         return;
     
     HTMLInputElement& input = downcast<HTMLInputElement>(*node);
+    if (HTMLElement* autoFillElement = input.autoFillButtonElement())
+        m_children.append(axObjectCache()->getOrCreate(autoFillElement));
+    
     HTMLElement* spinButtonElement = input.innerSpinButtonElement();
     if (!is<SpinButtonElement>(spinButtonElement))
         return;