Reviewed by Vicki.
authorharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 23 Feb 2005 19:07:53 +0000 (19:07 +0000)
committerharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 23 Feb 2005 19:07:53 +0000 (19:07 +0000)
        <rdar://problem/3524784> AX hit test doesn't return info when done in empty space of content area

        * kwq/KWQAccObject.mm:
        (-[KWQAccObject accessibilityHitTest:]):
        Return unignored object.

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

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

index 2572567ab6cdfbcc8875640a5863e54550ac1db6..4b4b47cc4370137b04a8542972afff604929562a 100644 (file)
@@ -1,3 +1,13 @@
+2005-02-23  David Harrison  <harrison@apple.com>
+
+        Reviewed by Vicki.
+
+        <rdar://problem/3524784> AX hit test doesn't return info when done in empty space of content area
+
+        * kwq/KWQAccObject.mm:
+        (-[KWQAccObject accessibilityHitTest:]):
+        Return unignored object.
+
 2005-02-23  Darin Adler  <darin@apple.com>
 
         Reviewed by Ken.
index b2b50c4f6874f11d3b7c1708e9e747c0fa845d1d..bfa44f9a89617376cd776a03f3d2b8c8072b62f1 100644 (file)
@@ -1792,16 +1792,18 @@ static void AXAttributedStringAppendReplaced (NSMutableAttributedString *attrStr
 - (id)accessibilityHitTest:(NSPoint)point
 {
     if (!m_renderer)
-        return self;
+        return NSAccessibilityUnignoredAncestor(self);
     
     RenderObject::NodeInfo nodeInfo(true, true);
     m_renderer->layer()->hitTest(nodeInfo, (int)point.x, (int)point.y);
     if (!nodeInfo.innerNode())
-        return self;
+        return NSAccessibilityUnignoredAncestor(self);
     RenderObject* obj = nodeInfo.innerNode()->renderer();
     if (!obj)
-        return self;
-    return obj->document()->getAccObjectCache()->accObject(obj);
+        return NSAccessibilityUnignoredAncestor(self);
+    
+    KWQAccObject * accObject = obj->document()->getAccObjectCache()->accObject(obj);
+    return NSAccessibilityUnignoredAncestor(accObject);
 }
 
 // _accessibilityParentForSubview is called by AppKit when moving up the tree