mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 10:33:33 +00:00
Bug 1826242: Use the cache for RemoteAccessible::CaretOffset on non-Windows. r=nlapre
Differential Revision: https://phabricator.services.mozilla.com/D176980
This commit is contained in:
parent
f7a86554a1
commit
6bb1e36bb7
@ -165,6 +165,10 @@ int32_t RemoteAccessible::CaretLineNumber() {
|
||||
}
|
||||
|
||||
int32_t RemoteAccessible::CaretOffset() const {
|
||||
if (StaticPrefs::accessibility_cache_enabled_AtStartup()) {
|
||||
return RemoteAccessibleBase<RemoteAccessible>::CaretOffset();
|
||||
}
|
||||
|
||||
int32_t offset = 0;
|
||||
Unused << mDoc->SendCaretOffset(mID, &offset);
|
||||
return offset;
|
||||
|
Loading…
Reference in New Issue
Block a user