Merge pull request #2089 from yurydelendik/remove-currenttransf
Removes unnecessary ctx.mozCurrentTransformInverse transforms
This commit is contained in:
commit
bd0e42220b
@ -126,17 +126,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]);
|
||||||
@ -224,7 +213,6 @@ var TilingPattern = (function TilingPatternClosure() {
|
|||||||
TODO('TilingType: ' + tilingType);
|
TODO('TilingType: ' + 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