From 8e9da5a5c6d5e91034fbfc9785d120b4259b3410 Mon Sep 17 00:00:00 2001 From: Vladimir Vukicevic Date: Sat, 25 Sep 2010 23:57:56 -0700 Subject: [PATCH] b=599698; remove UpdateSurfaceClip speedtrap in canvas drawImage; r+a=shaver --- content/canvas/src/nsCanvasRenderingContext2D.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/content/canvas/src/nsCanvasRenderingContext2D.cpp b/content/canvas/src/nsCanvasRenderingContext2D.cpp index 11d7b2451913..17683b0bbdea 100644 --- a/content/canvas/src/nsCanvasRenderingContext2D.cpp +++ b/content/canvas/src/nsCanvasRenderingContext2D.cpp @@ -3575,17 +3575,6 @@ nsCanvasRenderingContext2D::DrawImage(nsIDOMElement *imgElt, float a1, dirty = mThebes->UserToDevice(clip); } -#if 1 - // XXX cairo bug workaround; force a clip update on mThebes. - // Otherwise, a pixman clip gets left around somewhere, and pixman - // (Render) does source clipping as well -- so we end up - // compositing with an incorrect clip. This only seems to affect - // fallback cases, which happen when we have CSS scaling going on. - // This will blow away the current path, but we already blew it - // away in this function earlier. - mThebes->UpdateSurfaceClip(); -#endif - FINISH: if (NS_SUCCEEDED(rv)) rv = Redraw(dirty);