Set surface origin.
git-svn-id: svn://10.0.0.236/trunk@165895 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user