зеркало из https://github.com/mozilla/gecko-dev.git
Bug 633258 - Regression: iframe panning is broken [r=stechz]
This commit is contained in:
Родитель
e307ded1b0
Коммит
9ae89daf9b
|
@ -907,14 +907,15 @@
|
||||||
let displayport = new Rect(cacheX, cacheY, cacheSize.width, cacheSize.height);
|
let displayport = new Rect(cacheX, cacheY, cacheSize.width, cacheSize.height);
|
||||||
displayport.translateInside(bounds);
|
displayport.translateInside(bounds);
|
||||||
|
|
||||||
|
let rootScale = self.scale;
|
||||||
self.messageManager.sendAsyncMessage("Content:SetCacheViewport", {
|
self.messageManager.sendAsyncMessage("Content:SetCacheViewport", {
|
||||||
scrollX: contentView.scrollX / this._scale,
|
scrollX: contentView.scrollX / rootScale,
|
||||||
scrollY: contentView.scrollY / this._scale,
|
scrollY: contentView.scrollY / rootScale,
|
||||||
x: displayport.x / this._scale,
|
x: displayport.x / rootScale,
|
||||||
y: displayport.y / this._scale,
|
y: displayport.y / rootScale,
|
||||||
w: displayport.width / this._scale,
|
w: displayport.width / rootScale,
|
||||||
h: displayport.height / this._scale,
|
h: displayport.height / rootScale,
|
||||||
scale: this._scale,
|
scale: rootScale,
|
||||||
id: contentView.id
|
id: contentView.id
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче