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
+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
}
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;
}