Skip to content

Commit

Permalink
Merge pull request mozilla#7634 from Snuffleupagus/remove-mozDash
Browse files Browse the repository at this point in the history
Remove the deprecated `mozDash`/`mozDashOffset` canvas 2D context methods
  • Loading branch information
timvandermeij authored Sep 15, 2016
2 parents ced3cfa + 15d2948 commit aba2177
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
6 changes: 0 additions & 6 deletions src/display/canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down Expand Up @@ -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) {
Expand Down
3 changes: 0 additions & 3 deletions test/features/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit aba2177

Please sign in to comment.