Set surface origin.

git-svn-id: svn://10.0.0.236/trunk@165895 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
tor%cs.brown.edu
2004-11-29 18:53:37 +00:00
parent eb87911e36
commit a217ee225b

View File

@@ -367,6 +367,7 @@ nsSVGCairoCanvas::CompositeSurface(nsISVGRendererSurface *aSurface,
aSurface->GetWidth(&width);
aSurface->GetHeight(&height);
cairo_move_to(mCR, 0.0, 0.0);
cairo_show_surface(mCR, cairoSurface->GetSurface(), width, height);
cairo_restore(mCR);
@@ -420,6 +421,7 @@ nsSVGCairoCanvas::CompositeSurfaceMatrix(nsISVGRendererSurface *aSurface,
aSurface->GetWidth(&width);
aSurface->GetHeight(&height);
cairo_move_to(mCR, 0.0, 0.0);
cairo_set_alpha(mCR, aOpacity);
cairo_show_surface(mCR, cairoSurface->GetSurface(), width, height);