mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 748495 - Don't call setCSSViewport unnecessarily. r=Cwiiis
This commit is contained in:
parent
efc7d9a873
commit
215487ca11
@ -3567,7 +3567,12 @@ Tab.prototype = {
|
||||
},
|
||||
|
||||
setBrowserSize: function(aWidth, aHeight) {
|
||||
if (Math.abs(this.browserWidth - aWidth) < 1e-6 && Math.abs(this.browserHeight - aHeight) < 1e-6) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.browserWidth = aWidth;
|
||||
this.browserHeight = aHeight;
|
||||
|
||||
if (!this.browser.contentWindow)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user