Reviewed by Darin.
authorharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 28 Jan 2005 21:26:34 +0000 (21:26 +0000)
committerharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 28 Jan 2005 21:26:34 +0000 (21:26 +0000)
        <rdar://problem/3584942> AX: Safari Accessibility parent-child mismatch

        Use AppKit SPI _accessibilityParentForSubview to return KWQAccObject parent of AppKit AX object.

        * WebView.subproj/WebHTMLView.m:
        (-[WebHTMLView _accessibilityParentForSubview:]):
        New.

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

WebKit/ChangeLog
WebKit/WebView.subproj/WebHTMLView.m

index 916dde0a3f19d6e07468dc70ded6759da70ba1a3..72e530c2a5faf9f35cb8965982b113623c2df2ad 100644 (file)
@@ -1,3 +1,15 @@
+2005-01-28  David Harrison  <harrison@apple.com>
+
+        Reviewed by Darin.
+
+        <rdar://problem/3584942> AX: Safari Accessibility parent-child mismatch
+
+        Use AppKit SPI _accessibilityParentForSubview to return KWQAccObject parent of AppKit AX object.
+        
+        * WebView.subproj/WebHTMLView.m:
+        (-[WebHTMLView _accessibilityParentForSubview:]):
+        New.
+
 2005-01-28  Chris Blumenberg  <cblu@apple.com>
 
        WebKit side of: <rdar://problem/3951283> can view pages from the back/forward cache that should be disallowed by Parental Controls
index f279f911743954f83924554eb0a99d50868890b2..e7ab2bc6c401d05dadce56789104f99516f2cc40 100644 (file)
@@ -2999,6 +2999,18 @@ static WebHTMLView *lastHitView = nil;
         return self;
 }
 
+- (id)_accessibilityParentForSubview:(NSView *)subview {
+    id accTree = [[self _bridge] accessibilityTree];
+    if (!accTree)
+        return self;
+        
+    id parent = [accTree _accessibilityParentForSubview:subview];
+    if (parent == nil)
+        return self;
+
+    return parent;
+}
+
 - (void)centerSelectionInVisibleArea:(id)sender
 {
     [[self _bridge] centerSelectionInVisibleArea];