зеркало из https://github.com/mozilla/gecko-dev.git
Bug 406798. GetTextAtOffset(endOfTextOffset, BOUNDARY_LINE_START) returns first line on multi line paragraphs. r=ginn.chen, a=dsicore
This commit is contained in:
Родитель
8acbfaf1c3
Коммит
5c03d5bbdf
|
@ -868,6 +868,10 @@ nsresult nsHyperTextAccessible::GetTextHelper(EGetTextType aType, nsAccessibleTe
|
|||
if (!startFrame) {
|
||||
return (aOffset < 0 || aOffset > textLength) ? NS_ERROR_FAILURE : NS_OK;
|
||||
}
|
||||
else {
|
||||
// We're on the last continuation since we're on the last character
|
||||
startFrame = startFrame->GetLastContinuation();
|
||||
}
|
||||
}
|
||||
|
||||
nsSelectionAmount amount;
|
||||
|
|
Загрузка…
Ссылка в новой задаче