Bug 715785: Make ImageContainers independent of LayerManagers. r=roc
This commit is contained in:
@@ -899,6 +899,8 @@ BasicImageLayer::GetAndPaintCurrentImage(gfxContext* aContext,
|
||||
if (!mContainer)
|
||||
return nsnull;
|
||||
|
||||
mContainer->SetImageFactory(mManager->IsCompositingCheap() ? nsnull : BasicManager()->GetImageFactory());
|
||||
|
||||
nsRefPtr<Image> image = mContainer->GetCurrentImage();
|
||||
|
||||
nsRefPtr<gfxASurface> surface = mContainer->GetCurrentAsSurface(&mSize);
|
||||
|
||||
Reference in New Issue
Block a user