Removes unnecessary ctx.mozCurrentTransformInverse transforms
This commit is contained in:
parent
c2cfa99cc8
commit
954ea97158
@ -112,17 +112,6 @@ Shadings.RadialAxial = (function RadialAxialClosure() {
|
|||||||
return {
|
return {
|
||||||
type: 'Pattern',
|
type: 'Pattern',
|
||||||
getPattern: function RadialAxial_getPattern(ctx) {
|
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;
|
var grad;
|
||||||
if (type == PatternType.AXIAL)
|
if (type == PatternType.AXIAL)
|
||||||
grad = ctx.createLinearGradient(p0[0], p0[1], p1[0], p1[1]);
|
grad = ctx.createLinearGradient(p0[0], p0[1], p1[0], p1[1]);
|
||||||
@ -209,7 +198,6 @@ var TilingPattern = (function TilingPatternClosure() {
|
|||||||
TODO('TilingType');
|
TODO('TilingType');
|
||||||
|
|
||||||
this.curMatrix = ctx.mozCurrentTransform;
|
this.curMatrix = ctx.mozCurrentTransform;
|
||||||
this.invMatrix = ctx.mozCurrentTransformInverse;
|
|
||||||
this.ctx = ctx;
|
this.ctx = ctx;
|
||||||
this.type = 'Pattern';
|
this.type = 'Pattern';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user