AX: The scrollArea is not correctly returning the scrollbars
authorcfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 Nov 2011 21:48:43 +0000 (21:48 +0000)
committercfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 Nov 2011 21:48:43 +0000 (21:48 +0000)
commite5b4dfbc006adb153d30f6c4669f08698cbb2fce
treec5782d8e06bbda99b132f4fce92f6d04da2ab745
parent1ffa27fbe4532a570603e892b4efc781f7fa7baa
AX: The scrollArea is not correctly returning the scrollbars
https://bugs.webkit.org/show_bug.cgi?id=70247

Reviewed by Beth Dakin.

Source/WebCore:

A few bugs that were preventing this from working.
   1) In accessibilityAttributeValue: when an element did not have a renderer() we were returning earlier than we should have
   2) We were not updating and clearing the scrollbars correctly when children were cleared or when asked for.

Test: platform/mac/accessibility/scrollbars.html

* accessibility/AccessibilityScrollView.cpp:
(WebCore::AccessibilityScrollView::scrollBar):
(WebCore::AccessibilityScrollView::clearChildren):
* accessibility/AccessibilityScrollView.h:
* accessibility/mac/WebAccessibilityObjectWrapper.mm:
(-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]):

LayoutTests:

* platform/mac/accessibility/scrollbars-expected.txt: Added.
* platform/mac/accessibility/scrollbars.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@100666 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/platform/mac/accessibility/scrollbars-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/accessibility/scrollbars.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/accessibility/AccessibilityObject.h
Source/WebCore/accessibility/AccessibilityScrollView.cpp
Source/WebCore/accessibility/AccessibilityScrollView.h
Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapper.mm