From 59b7da0ed54d7750a6faf18d030332eabac034e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Mon, 27 Jul 2015 09:56:37 +0200 Subject: [PATCH] Fall back to pixelRatio 1 when none is defined. Required in Item#rasterize() for non-native blend modes. This broke phantomjs tests. --- src/item/Item.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/item/Item.js b/src/item/Item.js index 904572b5..78037458 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -3857,7 +3857,7 @@ var Item = Base.extend(Emitter, /** @lends Item# */{ // If native blending is possible, see if the item allows it || (nativeBlend || normalBlend && opacity < 1) && this._canComposite(), - pixelRatio = param.pixelRatio, + pixelRatio = param.pixelRatio || 1, mainCtx, itemOffset, prevOffset; if (!direct) { // Apply the parent's global matrix to the calculation of correct