Combine if blocks

This commit is contained in:
ahocevar
2018-11-16 13:04:03 +01:00
parent 81d0bc21d5
commit d3355f613c

View File

@@ -707,10 +707,8 @@ class CanvasExecutor {
}
let widthIndex = 0;
for (; d < dd; d += 2) {
if (geometryWidths) {
if (geometryWidths[widthIndex++] < width / this.pixelRatio) {
continue;
}
if (geometryWidths && geometryWidths[widthIndex++] < width / this.pixelRatio) {
continue;
}
this.replayImage_(context,
pixelCoordinates[d], pixelCoordinates[d + 1], image, anchorX, anchorY,