зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1485358 - fix purging of missing glyph WebRender users. r=me
This commit is contained in:
Родитель
37fb58dac2
Коммит
5b4c63c8a1
|
@ -157,7 +157,6 @@ public:
|
|||
void
|
||||
Remove()
|
||||
{
|
||||
remove();
|
||||
mManager->RemoveUserData(&sWRUserDataKey);
|
||||
}
|
||||
|
||||
|
@ -232,8 +231,11 @@ PurgeWRGlyphAtlas()
|
|||
}
|
||||
}
|
||||
}
|
||||
// Remove the layer manager's destroy notification.
|
||||
user->Remove();
|
||||
}
|
||||
// Remove the layer managers' destroy notifications only after processing
|
||||
// so as not to mess up gWRUsers iteration.
|
||||
while (!gWRUsers.isEmpty()) {
|
||||
gWRUsers.popFirst()->Remove();
|
||||
}
|
||||
// Finally, clear out the atlases.
|
||||
for (size_t i = 0; i < 8; i++) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче