Backout changeset 151783eb7f6f (bug 676711) for Android b-c orange; a=philor

This commit is contained in:
Ed Morley 2011-09-16 01:41:34 +01:00
parent 26fe157bd9
commit 385958e7d7

View File

@ -1619,6 +1619,8 @@ Browser.WebProgress.prototype = {
}
aTab.scrolledAreaChanged(true);
aTab.updateThumbnail();
aTab.updateContentCapture();
});
}
@ -2723,9 +2725,6 @@ function Tab(aURI, aParams) {
// default tabs to inactive (i.e. no display port)
this.active = false;
// Whether the tab thumbnail has been delayed to wait for the first paint.
this._delayedThumbnail = false;
}
Tab.prototype = {
@ -2838,22 +2837,9 @@ Tab.prototype = {
endLoading: function endLoading() {
if (!this._loading) throw "Not Loading!";
this._loading = false;
if (!this._delayedThumbnail) {
if (this._firstPaint) {
this.updateThumbnail();
} else {
let browser = this._browser;
let self = this;
this._delayedThumbnail = true;
browser.messageManager.addMessageListener("Browser:FirstPaint", function (aMessage) {
browser.messageManager.removeMessageListener(aMessage.name, arguments.callee);
self.updateThumbnail();
self._delayedThumbnail = false;
});
}
if (this._drawThumb) {
this._drawThumb = false;
this.updateThumbnail();
}
},
@ -3074,6 +3060,12 @@ Tab.prototype = {
updateThumbnail: function updateThumbnail(options) {
let options = options || {};
let browser = this._browser;
if (this._loading) {
this._drawThumb = true;
return;
}
let forceUpdate = ("force" in options && options.force);
// Do not repaint thumbnail if we already painted for this load. Bad things