Bug 647560. Use passed-in aContext instead of getting it from the layer manager. r=tnikkel

This commit is contained in:
Robert O'Callahan
2011-05-30 15:48:01 +12:00
parent 2b808c0486
commit c9a1dc9de6

View File

@@ -2502,10 +2502,7 @@ BasicShadowThebesLayer::PaintThebes(gfxContext* aContext,
return;
}
gfxContext* target = BasicManager()->GetTarget();
NS_ASSERTION(target, "We shouldn't be called if there's no target");
mFrontBuffer.DrawTo(this, target, GetEffectiveOpacity());
mFrontBuffer.DrawTo(this, aContext, GetEffectiveOpacity());
}
class BasicShadowContainerLayer : public ShadowContainerLayer, BasicImplData {