Bug 1065031, part 2 - Changes to Moz2D consuming code to update callers of Moz2D Matrix's Translate, Scale and Rotate methods to use these methods' new names. r=Bas

This commit is contained in:
Jonathan Watt
2014-09-10 18:29:35 +01:00
parent 454760d249
commit 727b0a4e88
26 changed files with 75 additions and 83 deletions

View File

@@ -36,13 +36,12 @@ BasicCanvasLayer::Paint(DrawTarget* aDT,
return;
}
Matrix m;
Matrix oldTM;
if (mNeedsYFlip) {
m = aDT->GetTransform();
Matrix newTransform = m;
newTransform.Translate(0.0f, mBounds.height);
newTransform.Scale(1.0f, -1.0f);
aDT->SetTransform(newTransform);
oldTM = aDT->GetTransform();
aDT->SetTransform(Matrix(oldTM).
PreTranslate(0.0f, mBounds.height).
PreScale(1.0f, -1.0f));
}
FillRectWithMask(aDT, aDeviceOffset,
@@ -52,7 +51,7 @@ BasicCanvasLayer::Paint(DrawTarget* aDT,
aMaskLayer);
if (mNeedsYFlip) {
aDT->SetTransform(m);
aDT->SetTransform(oldTM);
}
}