Skip to content

Commit 5225327

Browse files
author
David Harrison
committed
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). Canonical link: https://commits.webkit.org/13431@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16030 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent 8463454 commit 5225327

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

WebCore/ChangeLog

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
2006-08-24 David Harrison <harrison@apple.com>
2+
3+
Reviewed by Justin.
4+
5+
Follow up for...
6+
<rdar://problem/4471481> Represent misspellings in AXAttributedStringForTextMarkerRange
7+
8+
Fix bug I introduced in r15959.
9+
10+
* bridge/mac/WebCoreAXObject.mm:
11+
(-[WebCoreAXObject accessibilityAttributeValue:]):
12+
Use topDocument in case we are in a subframe (we want the start/end of the overall page).
13+
114
2006-08-24 Brady Eidson <beidson@apple.com>
215

316
Reviewed by Alice

WebCore/bridge/mac/WebCoreAXObject.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -985,10 +985,10 @@ - (id)accessibilityAttributeValue:(NSString*)attributeName
985985
}
986986

987987
if ([attributeName isEqualToString: @"AXStartTextMarker"])
988-
return (id) [self textMarkerForVisiblePosition: startOfDocument(m_renderer->element())];
988+
return (id) [self textMarkerForVisiblePosition: startOfDocument(m_renderer->document()->topDocument())];
989989

990990
if ([attributeName isEqualToString: @"AXEndTextMarker"])
991-
return (id) [self textMarkerForVisiblePosition: endOfDocument(m_renderer->element())];
991+
return (id) [self textMarkerForVisiblePosition: endOfDocument(m_renderer->document()->topDocument())];
992992

993993
return nil;
994994
}

0 commit comments

Comments
 (0)