mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 1485358 - fix purging of missing glyph WebRender users. r=me
This commit is contained in:
parent
37fb58dac2
commit
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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user