AX: <details> element should allow expand/close through AX API
[WebKit-https.git] / Source / WebCore / ChangeLog
index 6ec4895..312b105 100644 (file)
@@ -1,3 +1,31 @@
+2015-07-02  Chris Fleizach  <cfleizach@apple.com>
+
+        AX: <details> element should allow expand/close through AX API
+        https://bugs.webkit.org/show_bug.cgi?id=146549
+
+        Reviewed by Mario Sanchez Prada.
+
+        Allow AXExpanded to be writeable for <details> element, which, when set
+        will toggle the opening and closing of the element. 
+        Post a notification when that happens as well.
+
+        Modified test: platform/mac/accessibility/details-summary.html
+
+        * accessibility/AccessibilityNodeObject.cpp:
+        (WebCore::AccessibilityNodeObject::hierarchicalLevel):
+        (WebCore::AccessibilityNodeObject::setIsExpanded):
+        (WebCore::shouldUseAccessibilityObjectInnerText):
+        * accessibility/AccessibilityNodeObject.h:
+        * accessibility/AccessibilityObject.cpp:
+        (WebCore::AccessibilityObject::supportsPressAction):
+        * accessibility/AccessibilityRenderObject.cpp:
+        (WebCore::AccessibilityRenderObject::canSetExpandedAttribute):
+        * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
+        (-[WebAccessibilityObjectWrapper accessibilityIsAttributeSettable:]):
+        (-[WebAccessibilityObjectWrapper _accessibilitySetValue:forAttribute:]):
+        * html/HTMLDetailsElement.cpp:
+        (WebCore::HTMLDetailsElement::toggleOpen):
+
 2015-07-09  Alex Christensen  <achristensen@webkit.org>
 
         [Content Extensions] Prevent crashes with plugins.