Backout f298567cdf2c. Causes problems on linux

This commit is contained in:
Jeff Muizelaar 2010-06-29 16:31:20 -04:00
Родитель 594b22e6f2
Коммит 9c4eb28cb5
1 изменённых файлов: 11 добавлений и 0 удалений

Просмотреть файл

@ -3265,6 +3265,17 @@ nsCanvasRenderingContext2D::DrawImage(nsIDOMElement *imgElt, float a1,
mThebes->Paint(CurrentState().globalAlpha);
}
#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);