Bug 1074128, part 3 - Update the Mozilla code to use AutoSaveTransform's new name. r=Bas

This commit is contained in:
Jonathan Watt 2014-09-29 18:32:36 +01:00
parent 1f1e42b965
commit ef3394b492
3 changed files with 4 additions and 4 deletions

View File

@ -377,7 +377,7 @@ public:
RefPtr<SourceSurface> strokePaint =
DoSourcePaint(mStrokePaintRect, CanvasRenderingContext2D::Style::STROKE);
AutoSaveTransform autoSaveTransform(mFinalTarget);
AutoRestoreTransform autoRestoreTransform(mFinalTarget);
mFinalTarget->SetTransform(Matrix());
mgfx::FilterSupport::RenderFilterDescription(
@ -3986,7 +3986,7 @@ CanvasRenderingContext2D::DrawDirectlyToCanvas(
// We're wrapping tempTarget's (our) DrawTarget here, so we need to restore
// the matrix even though this is a temp gfxContext.
AutoSaveTransform autoSR(mTarget);
AutoRestoreTransform autoRestoreTransform(mTarget);
nsRefPtr<gfxContext> context = new gfxContext(tempTarget);
context->SetMatrix(contextMatrix.

View File

@ -251,7 +251,7 @@ BasicCompositor::DrawQuad(const gfx::Rect& aRect,
RefPtr<DrawTarget> dest = buffer;
buffer->PushClipRect(aClipRect);
AutoSaveTransform autoSaveTransform(dest);
AutoRestoreTransform autoRestoreTransform(dest);
Matrix newTransform;
Rect transformBounds;

View File

@ -472,7 +472,7 @@ nsFilterInstance::Render(gfxContext* aContext)
RefPtr<DrawTarget> dt = aContext->GetDrawTarget();
AutoSaveTransform autoSR(dt);
AutoRestoreTransform autoRestoreTransform(dt);
Matrix newTM = ToMatrix(ctm).PreTranslate(filterRect.x, filterRect.y) * dt->GetTransform();
dt->SetTransform(newTM);