mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1074128, part 3 - Update the Mozilla code to use AutoSaveTransform's new name. r=Bas
This commit is contained in:
parent
1f1e42b965
commit
ef3394b492
@ -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.
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user