mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-16 11:45:31 +00:00
Bug 237956 Gnopernicus can't report the content of a StaticText while the cursor is at the tail.
r = kyle.yuan@sun.com sr = henry.jia@sun.com
This commit is contained in:
parent
b8cfc3cf0c
commit
d95a003c13
@ -152,7 +152,7 @@ nsIDOMNode* nsAccessibleHyperText::FindTextNodeByOffset(PRInt32 aOffset, PRInt32
|
||||
nsAccessibleText accText(domNode);
|
||||
PRInt32 charCount;
|
||||
if (NS_SUCCEEDED(accText.GetCharacterCount(&charCount))) {
|
||||
if (aOffset >= 0 && aOffset < charCount) {
|
||||
if (aOffset >= 0 && aOffset <= charCount) {
|
||||
return domNode;
|
||||
}
|
||||
aOffset -= charCount;
|
||||
|
Loading…
Reference in New Issue
Block a user