mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 822666 - Robustify zoom comparison warning against floating point rounding. r=Cwiiis
This commit is contained in:
parent
e818e914b5
commit
e1c3302196
@ -3081,8 +3081,8 @@ Tab.prototype = {
|
||||
this._drawZoom = resolution;
|
||||
cwu.setResolution(resolution, resolution);
|
||||
}
|
||||
} else if (resolution != zoom) {
|
||||
dump("Warning: setDisplayPort resolution did not match zoom for background tab!");
|
||||
} else if (Math.abs(resolution - zoom) >= 1e-6) {
|
||||
dump("Warning: setDisplayPort resolution did not match zoom for background tab! (" + resolution + " != " + zoom + ")");
|
||||
}
|
||||
|
||||
// Finally, we set the display port, taking care to convert everything into the CSS-pixel
|
||||
|
Loading…
Reference in New Issue
Block a user