mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1201529 - Prevent calls to set the resolution or displayport from browser.js when APZ is enabled. r=rbarker
This commit is contained in:
parent
451162b0be
commit
fa52a25d8c
@ -3742,6 +3742,12 @@ Tab.prototype = {
|
||||
},
|
||||
|
||||
setViewport: function(aViewport) {
|
||||
if (AppConstants.MOZ_ANDROID_APZ) {
|
||||
// This should already be getting short-circuited out in GeckoLayerClient,
|
||||
// but this is an extra safety precaution
|
||||
return;
|
||||
}
|
||||
|
||||
// Transform coordinates based on zoom
|
||||
let x = aViewport.x / aViewport.zoom;
|
||||
let y = aViewport.y / aViewport.zoom;
|
||||
@ -3761,6 +3767,9 @@ Tab.prototype = {
|
||||
},
|
||||
|
||||
setResolution: function(aZoom, aForce) {
|
||||
if (AppConstants.MOZ_ANDROID_APZ) {
|
||||
return;
|
||||
}
|
||||
// Set zoom level
|
||||
if (aForce || !fuzzyEquals(aZoom, this._zoom)) {
|
||||
this._zoom = aZoom;
|
||||
@ -3834,6 +3843,9 @@ Tab.prototype = {
|
||||
},
|
||||
|
||||
sendViewportUpdate: function(aPageSizeUpdate) {
|
||||
if (AppConstants.MOZ_ANDROID_APZ) {
|
||||
return;
|
||||
}
|
||||
let viewport = this.getViewport();
|
||||
let displayPort = Services.androidBridge.getDisplayPort(aPageSizeUpdate, BrowserApp.isBrowserContentDocumentDisplayed(), this.id, viewport);
|
||||
if (displayPort != null)
|
||||
|
Loading…
Reference in New Issue
Block a user