зеркало из https://github.com/mozilla/gecko-dev.git
Bug 894925 - Hold a strong ref to the ImageContainer between DispatchImageClientUpdate and UpdateImageClientNow. r=nical
This commit is contained in:
Родитель
d333d320a7
Коммит
d4e021d74c
|
@ -15,6 +15,7 @@
|
|||
#include "nsXULAppAPI.h"
|
||||
#include "mozilla/layers/TextureClient.h"
|
||||
#include "mozilla/layers/ImageClient.h"
|
||||
#include "ImageContainer.h"
|
||||
#include "mozilla/layers/LayersTypes.h"
|
||||
#include "ShadowLayers.h"
|
||||
|
||||
|
@ -316,7 +317,10 @@ void ImageBridgeChild::DispatchImageClientUpdate(ImageClient* aClient,
|
|||
}
|
||||
sImageBridgeChildSingleton->GetMessageLoop()->PostTask(
|
||||
FROM_HERE,
|
||||
NewRunnableFunction(&UpdateImageClientNow, aClient, aContainer));
|
||||
NewRunnableFunction<
|
||||
void (*)(ImageClient*, ImageContainer*),
|
||||
ImageClient*,
|
||||
nsRefPtr<ImageContainer> >(&UpdateImageClientNow, aClient, aContainer));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Загрузка…
Ссылка в новой задаче