Reviewed by Darin.
authorharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Jan 2005 21:03:46 +0000 (21:03 +0000)
committerharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Jan 2005 21:03:46 +0000 (21:03 +0000)
        <rdar://problem/3959668> accessibilityFocusedUIElement sometimes returns an ignored element; it must not

        * kwq/KWQAccObject.mm:
        (-[KWQAccObject accessibilityFocusedUIElement]):
        Return parentObjectUnignored if focused object is ignored.

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

WebCore/ChangeLog-2005-08-23
WebCore/kwq/KWQAccObject.mm

index af4438594452c10d25c730ab1ac294ed9f4c7cfe..98b10a5a3a7a71c6b066fb0df0bebb9f4d79012a 100644 (file)
@@ -1,3 +1,13 @@
+2005-01-18  David Harrison  <harrison@apple.com>
+
+        Reviewed by Darin.
+
+        <rdar://problem/3959668> accessibilityFocusedUIElement sometimes returns an ignored element; it must not
+
+        * kwq/KWQAccObject.mm:
+        (-[KWQAccObject accessibilityFocusedUIElement]):
+        Return parentObjectUnignored if focused object is ignored.
+
 2005-01-18  Ken Kocienda  <kocienda@apple.com>
 
         Reviewed by John
index 7541c6776d4173667717a68bdfba4ef82bc374d2..4cf5d26ff1b74f08f7c6fcd13d028f63b46e5478 100644 (file)
@@ -1546,7 +1546,13 @@ static QRect boundingBoxRect(RenderObject* obj)
     if (!focusNode || !focusNode->renderer())
         return nil;
 
-    return focusNode->renderer()->document()->getAccObjectCache()->accObject(focusNode->renderer());
+    KWQAccObject* obj = focusNode->renderer()->document()->getAccObjectCache()->accObject(focusNode->renderer());
+    
+    // the HTML element, for example, is focusable but has an AX object that is ignored
+    if ([obj accessibilityIsIgnored])
+        obj = [obj parentObjectUnignored];
+    
+    return obj;
 }
 
 - (BOOL)accessibilityIsAttributeSettable:(NSString*)attributeName