mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 12:51:06 +00:00
Bug 1730086 part 4: Support IAccessibleText::textBefore/AfterOffset for cached RemoteAccessibles. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D137505
This commit is contained in:
parent
9f17a2e0b4
commit
0862082e9c
@ -219,9 +219,9 @@ ia2AccessibleText::get_textBeforeOffset(long aOffset,
|
||||
*aStartOffset = *aEndOffset = 0;
|
||||
*aText = nullptr;
|
||||
|
||||
auto [textAcc, hr] = LocalTextAcc();
|
||||
HyperTextAccessibleBase* textAcc = TextAcc();
|
||||
if (!textAcc) {
|
||||
return hr;
|
||||
return CO_E_OBJNOTCONNECTED;
|
||||
}
|
||||
|
||||
if (!textAcc->IsValidOffset(aOffset)) return E_INVALIDARG;
|
||||
@ -261,9 +261,9 @@ ia2AccessibleText::get_textAfterOffset(long aOffset,
|
||||
*aEndOffset = 0;
|
||||
*aText = nullptr;
|
||||
|
||||
auto [textAcc, hr] = LocalTextAcc();
|
||||
HyperTextAccessibleBase* textAcc = TextAcc();
|
||||
if (!textAcc) {
|
||||
return hr;
|
||||
return CO_E_OBJNOTCONNECTED;
|
||||
}
|
||||
|
||||
if (!textAcc->IsValidOffset(aOffset)) return E_INVALIDARG;
|
||||
|
Loading…
Reference in New Issue
Block a user