From e4bf07ac29f7084d517c935d8560e76b954eeea5 Mon Sep 17 00:00:00 2001 From: Bas Schouten Date: Fri, 30 Jul 2010 21:31:15 +0200 Subject: [PATCH] Bug 567169: Followup changeset 4a3e8596e8fc - addresses review comments I neglected to process when pushing the patch. a=blocking-betaN --- content/canvas/src/nsCanvasRenderingContext2D.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/canvas/src/nsCanvasRenderingContext2D.cpp b/content/canvas/src/nsCanvasRenderingContext2D.cpp index b2e0e50d3ba..a65aebe1819 100644 --- a/content/canvas/src/nsCanvasRenderingContext2D.cpp +++ b/content/canvas/src/nsCanvasRenderingContext2D.cpp @@ -3520,7 +3520,7 @@ nsCanvasRenderingContext2D::DrawImage(nsIDOMElement *imgElt, float a1, DirtyAllStyles(); /* Direct2D isn't very good at clipping so use Fill() when we can */ - if (CurrentState().globalAlpha = 1. && mThebes->CurrentOperator() == gfxContext::OPERATOR_OVER) { + if (CurrentState().globalAlpha == 1.0f && mThebes->CurrentOperator() == gfxContext::OPERATOR_OVER) { mThebes->Rectangle(clip); mThebes->Fill(); } else {