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:
Mark Finkle 2011-03-17 09:49:00 -07:00
parent 45342a8dc0
commit 181e7d61cc

View File

@ -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)