From: sbarman Date: Sat, 18 Jun 2011 00:48:44 +0000 (-0700) Subject: clean up tiling X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=e80a8e6e2bdffca1ee51a40e4fde932163917751;p=pdf.js.git clean up tiling --- diff --git a/pdf.js b/pdf.js index 9c8b7e6..20a91d9 100644 --- a/pdf.js +++ b/pdf.js @@ -2184,8 +2184,9 @@ var CanvasGraphics = (function() { error("Unsupported paint type"); } else { // should go to default for color space - this.ctx.fillStyle = this.makeCssRgb(1, 1, 1); - this.ctx.strokeStyle = this.makeCssRgb(0, 0, 0); + var ctx = this.ctx; + ctx.fillStyle = this.makeCssRgb(1, 1, 1); + ctx.strokeStyle = this.makeCssRgb(0, 0, 0); } // not sure what to do with this