Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Xavier Fung 2012-09-09 09:42:46 +08:00
commit 01a00e5f8f

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';