mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 649417 - Check if BasicShadowableImageLayer has a current image before attempting to use it. r=cjones
This commit is contained in:
parent
1cdda9e879
commit
1b63f405ae
@ -2005,7 +2005,14 @@ private:
|
||||
void
|
||||
BasicShadowableImageLayer::Paint(gfxContext* aContext)
|
||||
{
|
||||
if (!mContainer) {
|
||||
return;
|
||||
}
|
||||
|
||||
nsRefPtr<Image> image = mContainer->GetCurrentImage();
|
||||
if (!image) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (image->GetFormat() == Image::PLANAR_YCBCR && BasicManager()->IsCompositingCheap()) {
|
||||
PlanarYCbCrImage *YCbCrImage = static_cast<PlanarYCbCrImage*>(image.get());
|
||||
|
Loading…
Reference in New Issue
Block a user