Browse Source

Merge pull request #7634 from Snuffleupagus/remove-mozDash

Remove the deprecated `mozDash`/`mozDashOffset` canvas 2D context methods
Tim van der Meij 9 years ago committed by GitHub
parent
commit
3b94ecf563
  1. 6
      src/display/canvas.js
  2. 3
      test/features/tests.js

6
src/display/canvas.js

@ -655,9 +655,6 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { @@ -655,9 +655,6 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
if (sourceCtx.setLineDash !== undefined) {
destCtx.setLineDash(sourceCtx.getLineDash());
destCtx.lineDashOffset = sourceCtx.lineDashOffset;
} else if (sourceCtx.mozDashOffset !== undefined) {
destCtx.mozDash = sourceCtx.mozDash;
destCtx.mozDashOffset = sourceCtx.mozDashOffset;
}
}
@ -913,9 +910,6 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { @@ -913,9 +910,6 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
if (ctx.setLineDash !== undefined) {
ctx.setLineDash(dashArray);
ctx.lineDashOffset = dashPhase;
} else {
ctx.mozDash = dashArray;
ctx.mozDashOffset = dashPhase;
}
},
setRenderingIntent: function CanvasGraphics_setRenderingIntent(intent) {

3
test/features/tests.js

@ -408,9 +408,6 @@ var tests = [ @@ -408,9 +408,6 @@ var tests = [
if ('setLineDash' in ctx) {
ctx.setLineDash([10, 10]);
ctx.lineDashOffset = 0;
} else {
ctx.mozDash = [10, 10];
ctx.mozDashOffset = 0;
}
ctx.stroke();

Loading…
Cancel
Save