Bug 902525 - Part 5: fixes for blending of HTML elements r=roc
This commit is contained in:
@@ -110,7 +110,9 @@ BasicImageLayer::GetAndPaintCurrentImage(gfxContext* aContext,
|
||||
// The visible region can extend outside the image, so just draw
|
||||
// within the image bounds.
|
||||
if (aContext) {
|
||||
AutoSetOperator setOperator(aContext, GetOperator());
|
||||
gfxContext::GraphicsOperator mixBlendMode = GetEffectiveMixBlendMode();
|
||||
AutoSetOperator setOptimizedOperator(aContext, mixBlendMode != gfxContext::OPERATOR_OVER ? mixBlendMode : GetOperator());
|
||||
|
||||
PaintContext(pat,
|
||||
nsIntRegion(nsIntRect(0, 0, size.width, size.height)),
|
||||
aOpacity, aContext, aMaskLayer);
|
||||
|
||||
Reference in New Issue
Block a user