Merge pull request #2089 from yurydelendik/remove-currenttransf

Removes unnecessary ctx.mozCurrentTransformInverse transforms
This commit is contained in:
Julian Viereck 2012-09-08 08:59:21 -07:00
commit bd0e42220b

View File

@ -126,17 +126,6 @@ Shadings.RadialAxial = (function RadialAxialClosure() {
return {
type: 'Pattern',
getPattern: function RadialAxial_getPattern(ctx) {
var curMatrix = ctx.mozCurrentTransform;
if (curMatrix) {
var userMatrix = ctx.mozCurrentTransformInverse;
p0 = Util.applyTransform(p0, curMatrix);
p0 = Util.applyTransform(p0, userMatrix);
p1 = Util.applyTransform(p1, curMatrix);
p1 = Util.applyTransform(p1, userMatrix);
}
var grad;
if (type == PatternType.AXIAL)
grad = ctx.createLinearGradient(p0[0], p0[1], p1[0], p1[1]);
@ -224,7 +213,6 @@ var TilingPattern = (function TilingPatternClosure() {
TODO('TilingType: ' + tilingType);
this.curMatrix = ctx.mozCurrentTransform;
this.invMatrix = ctx.mozCurrentTransformInverse;
this.ctx = ctx;
this.type = 'Pattern';