1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 06:38:07 +02:00

Remove "unnecessary" inline function names in the src/display/canvas.js file

This is ever so slightly shorter, which cannot hurt.
This commit is contained in:
Jonas Jenwald 2025-04-05 14:59:04 +02:00
parent 7eef7dfc78
commit 624d8a418e

View file

@ -125,47 +125,47 @@ function mirrorContextOperations(ctx, destCtx) {
delete ctx._removeMirroring; delete ctx._removeMirroring;
}; };
ctx.save = function ctxSave() { ctx.save = function () {
destCtx.save(); destCtx.save();
this.__originalSave(); this.__originalSave();
}; };
ctx.restore = function ctxRestore() { ctx.restore = function () {
destCtx.restore(); destCtx.restore();
this.__originalRestore(); this.__originalRestore();
}; };
ctx.translate = function ctxTranslate(x, y) { ctx.translate = function (x, y) {
destCtx.translate(x, y); destCtx.translate(x, y);
this.__originalTranslate(x, y); this.__originalTranslate(x, y);
}; };
ctx.scale = function ctxScale(x, y) { ctx.scale = function (x, y) {
destCtx.scale(x, y); destCtx.scale(x, y);
this.__originalScale(x, y); this.__originalScale(x, y);
}; };
ctx.transform = function ctxTransform(a, b, c, d, e, f) { ctx.transform = function (a, b, c, d, e, f) {
destCtx.transform(a, b, c, d, e, f); destCtx.transform(a, b, c, d, e, f);
this.__originalTransform(a, b, c, d, e, f); this.__originalTransform(a, b, c, d, e, f);
}; };
ctx.setTransform = function ctxSetTransform(a, b, c, d, e, f) { ctx.setTransform = function (a, b, c, d, e, f) {
destCtx.setTransform(a, b, c, d, e, f); destCtx.setTransform(a, b, c, d, e, f);
this.__originalSetTransform(a, b, c, d, e, f); this.__originalSetTransform(a, b, c, d, e, f);
}; };
ctx.resetTransform = function ctxResetTransform() { ctx.resetTransform = function () {
destCtx.resetTransform(); destCtx.resetTransform();
this.__originalResetTransform(); this.__originalResetTransform();
}; };
ctx.rotate = function ctxRotate(angle) { ctx.rotate = function (angle) {
destCtx.rotate(angle); destCtx.rotate(angle);
this.__originalRotate(angle); this.__originalRotate(angle);
}; };
ctx.clip = function ctxRotate(rule) { ctx.clip = function (rule) {
destCtx.clip(rule); destCtx.clip(rule);
this.__originalClip(rule); this.__originalClip(rule);
}; };