Skip to content

Commit a7690de

Browse files
committed
Name anonymous functions in canvas.js.
1 parent 8f3448e commit a7690de

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/canvas.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -541,8 +541,7 @@ var CanvasGraphics = (function canvasGraphics() {
541541
},
542542

543543
// Color
544-
setStrokeColorSpace:
545-
function canvasGraphicsSetStrokeColorSpacefunction(raw) {
544+
setStrokeColorSpace: function canvasGraphicsSetStrokeColorSpace(raw) {
546545
this.current.strokeColorSpace = ColorSpace.fromIR(raw);
547546
},
548547
setFillColorSpace: function canvasGraphicsSetFillColorSpace(raw) {
@@ -553,7 +552,7 @@ var CanvasGraphics = (function canvasGraphics() {
553552
var color = cs.getRgb(arguments);
554553
this.setStrokeRGBColor.apply(this, color);
555554
},
556-
getColorN_IR_Pattern: function(IR, cs) {
555+
getColorN_IR_Pattern: function canvasGraphicsGetColorN_IR_Pattern(IR, cs) {
557556
if (IR[0] == 'TilingPattern') {
558557
var args = IR[1];
559558
var base = cs.base;
@@ -669,8 +668,8 @@ var CanvasGraphics = (function canvasGraphics() {
669668
error('Should not call beginImageData');
670669
},
671670

672-
paintFormXObjectBegin:
673-
function canvasGraphicsPaintFormXObject(matrix, bbox) {
671+
paintFormXObjectBegin: function canvasGraphicsPaintFormXObjectBegin(matrix,
672+
bbox) {
674673
this.save();
675674

676675
if (matrix && isArray(matrix) && 6 == matrix.length)
@@ -685,11 +684,11 @@ var CanvasGraphics = (function canvasGraphics() {
685684
}
686685
},
687686

688-
paintFormXObjectEnd: function() {
687+
paintFormXObjectEnd: function canvasGraphicsPaintFormXObjectEnd() {
689688
this.restore();
690689
},
691690

692-
paintJpegXObject: function(objId, w, h) {
691+
paintJpegXObject: function canvasGraphicsPaintJpegXObject(objId, w, h) {
693692
var image = this.objs.get(objId);
694693
if (!image) {
695694
error('Dependent image isn\'t ready yet');
@@ -708,7 +707,8 @@ var CanvasGraphics = (function canvasGraphics() {
708707
this.restore();
709708
},
710709

711-
paintImageMaskXObject: function(imgArray, inverseDecode, width, height) {
710+
paintImageMaskXObject: function canvasGraphicsPaintImageMaskXObject(
711+
imgArray, inverseDecode, width, height) {
712712
function applyStencilMask(buffer, inverseDecode) {
713713
var imgArrayPos = 0;
714714
var i, j, mask, buf;
@@ -756,7 +756,7 @@ var CanvasGraphics = (function canvasGraphics() {
756756
this.restore();
757757
},
758758

759-
paintImageXObject: function(imgData) {
759+
paintImageXObject: function canvasGraphicsPaintImageXObject(imgData) {
760760
this.save();
761761
var ctx = this.ctx;
762762
var w = imgData.width;

0 commit comments

Comments
 (0)