Bug 549501 - nsCanvasRenderingContext2D::DrawImage redraws undefined rectangles. r=vlad
authorJulian Seward <jseward@acm.org>
Thu, 11 Mar 2010 07:43:20 +0100
changeset 39252 332b5043e9a942f9488915f7ff0db19be0e6c699
parent 39251 581260c2e0d799abb1bdd30f7a5542de0c99b0b8
child 39253 28b6961febf19f47e89800c121d9eaf055a4b2f1
push idunknown
push userunknown
push dateunknown
reviewersvlad
bugs549501
milestone1.9.3a3pre
Bug 549501 - nsCanvasRenderingContext2D::DrawImage redraws undefined rectangles. r=vlad
content/canvas/src/nsCanvasRenderingContext2D.cpp
--- a/content/canvas/src/nsCanvasRenderingContext2D.cpp
+++ b/content/canvas/src/nsCanvasRenderingContext2D.cpp
@@ -3015,17 +3015,17 @@ NS_IMETHODIMP
 nsCanvasRenderingContext2D::DrawImage(nsIDOMElement *imgElt, float a1,
                                       float a2, float a3, float a4, float a5,
                                       float a6, float a7, float a8,
                                       PRUint8 optional_argc)
 {
     NS_ENSURE_ARG(imgElt);
 
     nsresult rv;
-    gfxRect dirty;
+    gfxRect dirty(0.0, 0.0, 0.0, 0.0);
 
     double sx,sy,sw,sh;
     double dx,dy,dw,dh;
 
     gfxMatrix matrix;
     nsRefPtr<gfxPattern> pattern;
     nsRefPtr<gfxPath> path;