Reviewed by Justin.
authorharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 25 Aug 2006 00:32:30 +0000 (00:32 +0000)
committerharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 25 Aug 2006 00:32:30 +0000 (00:32 +0000)
        Follow up for...
        <rdar://problem/4471481> Represent misspellings in AXAttributedStringForTextMarkerRange

        Fix bug I introduced in r15959.

        * bridge/mac/WebCoreAXObject.mm:
        (-[WebCoreAXObject accessibilityAttributeValue:]):
        Use topDocument in case we are in a subframe (we want the start/end of the overall page).

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

WebCore/ChangeLog
WebCore/bridge/mac/WebCoreAXObject.mm

index f9ee9a2faa058ca72630cc132a86f7273fecc301..8e06c299b6833b8ff1cdcfd221cda46f1f1bd67f 100644 (file)
@@ -1,3 +1,16 @@
+2006-08-24  David Harrison  <harrison@apple.com>
+
+        Reviewed by Justin.
+
+        Follow up for...
+        <rdar://problem/4471481> Represent misspellings in AXAttributedStringForTextMarkerRange
+
+        Fix bug I introduced in r15959.
+        
+        * bridge/mac/WebCoreAXObject.mm:
+        (-[WebCoreAXObject accessibilityAttributeValue:]):
+        Use topDocument in case we are in a subframe (we want the start/end of the overall page).
+
 2006-08-24  Brady Eidson  <beidson@apple.com>
 
         Reviewed by Alice
index de4bb86699653677be321760a570ef94ca074e61..3e36f4bc44b82b0c307d0d3578c9b6bf81d2f6fe 100644 (file)
@@ -985,10 +985,10 @@ static IntRect boundingBoxRect(RenderObject* obj)
     }
     
     if ([attributeName isEqualToString: @"AXStartTextMarker"])
-        return (id) [self textMarkerForVisiblePosition: startOfDocument(m_renderer->element())];
+        return (id) [self textMarkerForVisiblePosition: startOfDocument(m_renderer->document()->topDocument())];
 
     if ([attributeName isEqualToString: @"AXEndTextMarker"])
-        return (id) [self textMarkerForVisiblePosition: endOfDocument(m_renderer->element())];
+        return (id) [self textMarkerForVisiblePosition: endOfDocument(m_renderer->document()->topDocument())];
 
     return nil;
 }