mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Remove the deprecated mozDash
/mozDashOffset
canvas 2D context methods
According to [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash#Browser_compatibility) the standard versions of these methods have been supported since Firefox 27, which was released over two and a half years ago. (See the dates in https://wiki.mozilla.org/RapidRelease/Calendar#Past_branch_dates) Furthermore the non-standard properties are now in the process of being removed, please see https://groups.google.com/forum/#!topic/mozilla.dev.platform/UIudMABegcY. Hence I don't think that we need to keep the old `moz` prefixed ones as fallback any more.
This commit is contained in:
parent
a7c35025fe
commit
8eaa2cbce3
2 changed files with 0 additions and 9 deletions
|
@ -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() {
|
|||
if (ctx.setLineDash !== undefined) {
|
||||
ctx.setLineDash(dashArray);
|
||||
ctx.lineDashOffset = dashPhase;
|
||||
} else {
|
||||
ctx.mozDash = dashArray;
|
||||
ctx.mozDashOffset = dashPhase;
|
||||
}
|
||||
},
|
||||
setRenderingIntent: function CanvasGraphics_setRenderingIntent(intent) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue