Commit 2c534eaf authored by cfleizach@apple.com's avatar cfleizach@apple.com
Browse files

Bug 22002: AX: scroll bars show should not appear in AX hierarchy when...

Bug 22002: AX: scroll bars show should not appear in AX hierarchy when WebFrameView does not allow scrolling
https://bugs.webkit.org/show_bug.cgi?id=22002



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38035 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent dafe8e51
2008-10-31 Chris Fleizach <cfleizach@apple.com>
Reviewed by Darin Adler.
<rdar://problem/4361197> Screen Reader's Item Chooser shows scroll area for WebKit Application window
If a WebFrameView does not allow scrolling, its scrollbars should not appear in the accessibility hierarchy.
* WebView/WebDynamicScrollBarsView.m:
(-[WebDynamicScrollBarsView accessibilityIsIgnored]):
2008-10-30 Mark Rowe <mrowe@apple.com>
Reviewed by Jon Homeycutt.
......
......@@ -29,6 +29,7 @@
#import "WebDynamicScrollBarsViewInternal.h"
#import "WebDocument.h"
#import "WebFrameView.h"
#import <WebKitSystemInterface.h>
using namespace WebCore;
......@@ -293,4 +294,13 @@ - (void)scrollWheel:(NSEvent *)event
[super scrollWheel:event];
}
- (BOOL)accessibilityIsIgnored
{
id docView = [self documentView];
if ([docView isKindOfClass:[WebFrameView class]] && ![(WebFrameView *)docView allowsScrolling])
return YES;
return [super accessibilityIsIgnored];
}
@end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment