зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1533429 - Return -1 for atk_text_get_caret_offset when we can't get the offset r=surkov
This makes Gecko conform to the newly documented expected behavior of ATK. MozReview-Commit-ID: K9sRUDqeLq4 Differential Revision: https://phabricator.services.mozilla.com/D22550 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
338d8b76f5
Коммит
d74ffde9eb
|
@ -287,7 +287,7 @@ static gint getCaretOffsetCB(AtkText* aText) {
|
|||
if (accWrap) {
|
||||
HyperTextAccessible* text = accWrap->AsHyperText();
|
||||
if (!text || !text->IsTextRole()) {
|
||||
return 0;
|
||||
return -1;
|
||||
}
|
||||
|
||||
return static_cast<gint>(text->CaretOffset());
|
||||
|
@ -297,7 +297,7 @@ static gint getCaretOffsetCB(AtkText* aText) {
|
|||
return static_cast<gint>(proxy->CaretOffset());
|
||||
}
|
||||
|
||||
return 0;
|
||||
return -1;
|
||||
}
|
||||
|
||||
static AtkAttributeSet* getRunAttributesCB(AtkText* aText, gint aOffset,
|
||||
|
|
Загрузка…
Ссылка в новой задаче