diff options
Diffstat (limited to 'Source/WebCore/accessibility/AccessibilityScrollView.cpp')
-rw-r--r-- | Source/WebCore/accessibility/AccessibilityScrollView.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/WebCore/accessibility/AccessibilityScrollView.cpp b/Source/WebCore/accessibility/AccessibilityScrollView.cpp index 5b94fe3..5e34f81 100644 --- a/Source/WebCore/accessibility/AccessibilityScrollView.cpp +++ b/Source/WebCore/accessibility/AccessibilityScrollView.cpp @@ -32,6 +32,7 @@ #include "HTMLFrameOwnerElement.h" #include "RenderPart.h" #include "ScrollView.h" +#include "Widget.h" namespace WebCore { @@ -63,6 +64,19 @@ const AccessibilityObject::AccessibilityChildrenVector& AccessibilityScrollView: addChildren(); return m_children; } + +// If this is WebKit1 then the native scroll view needs to return the +// AX information (because there are no scroll bar children in the ScrollView object in WK1). +// In WebKit2, the ScrollView object will return the AX information (because there are no platform widgets). +bool AccessibilityScrollView::isAttachment() const +{ + return m_scrollView->platformWidget(); +} + +Widget* AccessibilityScrollView::widgetForAttachmentView() const +{ + return m_scrollView.get(); +} void AccessibilityScrollView::updateChildrenIfNecessary() { |