icecat: add release icecat-140.9.0-1gnu1 for ecne
This commit is contained in:
parent
8eb1f1732f
commit
a5f93cb214
1197 changed files with 30593 additions and 15344 deletions
|
|
@ -181,7 +181,20 @@ class MOZ_STACK_CLASS AutoImageBridgeParentAsyncMessageSender final {
|
|||
~AutoImageBridgeParentAsyncMessageSender() {
|
||||
mImageBridge->SendPendingAsyncMessages();
|
||||
if (mToDestroy) {
|
||||
// Iterate mToDestroy but de-duplicate it to avoid destroying the
|
||||
// same texture parent actor twice.
|
||||
nsTHashSet<PTextureParent*> seenTextureParents;
|
||||
for (const auto& op : *mToDestroy) {
|
||||
// Peek inside the op (as DestroyActor does) to see if we are about
|
||||
// to destroy a PTextureParent.
|
||||
if (op.type() == OpDestroy::TPTexture) {
|
||||
PTextureParent* textureParent = op.get_PTexture().AsParent();
|
||||
if (!seenTextureParents.EnsureInserted(textureParent)) {
|
||||
// Already seen, so skip this one.
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
mImageBridge->DestroyActor(op);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue