mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 638164 - Checkerboarding after zooming in, visiting other page, then going back in history [r=mbrubeck,wesj, a=blocking-fennec]
--HG-- extra : rebase_source : f0ae367c2a7058a7f329ce74f7382cfcaf6eef90
This commit is contained in:
parent
45342a8dc0
commit
181e7d61cc
@ -293,6 +293,7 @@ let ContentScroll = {
|
||||
addMessageListener("Content:SetWindowSize", this);
|
||||
|
||||
addEventListener("scroll", this, false);
|
||||
addEventListener("pagehide", this, false);
|
||||
addEventListener("MozScrolledAreaChanged", this, false);
|
||||
},
|
||||
|
||||
@ -382,6 +383,10 @@ let ContentScroll = {
|
||||
|
||||
handleEvent: function(aEvent) {
|
||||
switch (aEvent.type) {
|
||||
case "pagehide":
|
||||
this._scrollOffset = { x: 0, y: 0 };
|
||||
break;
|
||||
|
||||
case "scroll": {
|
||||
let doc = aEvent.target;
|
||||
if (doc != content.document)
|
||||
|
Loading…
Reference in New Issue
Block a user