Bug 1632467: Clear eGroupInfoDirty flag when creating AccGroupInfo. r=MarcoZ

When the tree is mutated, we set eGroupInfoDirty regardless of whether there is GroupInfo.
Previously, we cleared eGroupInfoDirty when updating GroupInfo, but not when creating it.
This meant that the flag was often still set, causing the cache to not be used a lot of the time.

Differential Revision: https://phabricator.services.mozilla.com/D72139
This commit is contained in:
James Teh 2020-04-23 13:21:32 +00:00
Родитель 76b3952248
Коммит 99f2b37464
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -2604,6 +2604,7 @@ AccGroupInfo* Accessible::GetGroupInfo() const {
}
mBits.groupInfo = AccGroupInfo::CreateGroupInfo(this);
mStateFlags &= ~eGroupInfoDirty;
return mBits.groupInfo;
}