Combine if blocks

This commit is contained in:
ahocevar
2018-11-16 13:04:03 +01:00
parent 81d0bc21d5
commit d3355f613c
+2 -4
View File
@@ -707,10 +707,8 @@ class CanvasExecutor {
} }
let widthIndex = 0; let widthIndex = 0;
for (; d < dd; d += 2) { for (; d < dd; d += 2) {
if (geometryWidths) { if (geometryWidths && geometryWidths[widthIndex++] < width / this.pixelRatio) {
if (geometryWidths[widthIndex++] < width / this.pixelRatio) { continue;
continue;
}
} }
this.replayImage_(context, this.replayImage_(context,
pixelCoordinates[d], pixelCoordinates[d + 1], image, anchorX, anchorY, pixelCoordinates[d], pixelCoordinates[d + 1], image, anchorX, anchorY,