Reviewed by Maciej.
authorharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 25 Jan 2005 22:03:55 +0000 (22:03 +0000)
committerharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 25 Jan 2005 22:03:55 +0000 (22:03 +0000)
        <rdar://problem/3973067> AXWebArea for http://apple.netscape.com/ has an empty AXLinkUIElements

        * kwq/KWQAccObject.mm:
        (-[KWQAccObject accessibilityAttributeValue:]):
        Omit ignored AXLinks from AXLinkUIElements result

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

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

index 2d8fd965a6afca2f0606bf98da10ddcb2a21073e..d49943216a48bab9e88adf231c07c180e7e0d086 100644 (file)
@@ -1,3 +1,13 @@
+2005-01-25  David Harrison  <harrison@apple.com>
+
+        Reviewed by Maciej.
+
+        <rdar://problem/3973067> AXWebArea for http://apple.netscape.com/ has an empty AXLinkUIElements
+
+        * kwq/KWQAccObject.mm:
+        (-[KWQAccObject accessibilityAttributeValue:]):
+        Omit ignored AXLinks from AXLinkUIElements result
+
 2005-01-25  Ken Kocienda  <kocienda@apple.com>
 
         Reviewed by John
index 01718fe9a2a104aee566f7d25a63a92c32b46230..06bb2fe39f496afe66f5e9371215fc365168a926 100644 (file)
@@ -823,8 +823,12 @@ static QRect boundingBoxRect(RenderObject* obj)
             Node curr = coll.firstItem();
             while (!curr.isNull()) {
                 RenderObject* obj = curr.handle()->renderer();
-                if (obj)
-                    [links addObject: obj->document()->getAccObjectCache()->accObject(obj)];
+                if (obj) {
+                    KWQAccObject *axobj = obj->document()->getAccObjectCache()->accObject(obj);
+                    ASSERT([[axobj role] isEqualToString:@"AXLink"]);
+                    if (![axobj accessibilityIsIgnored])
+                        [links addObject: axobj];
+                }
                 curr = coll.nextItem();
             }
             return links;