Differences between the patch in 533502 and what was pushed. r=mfinkle

This commit is contained in:
Doug Turner 2009-12-13 21:51:11 -08:00
Родитель aa2d7d3632
Коммит 0e2dd79728
2 изменённых файлов: 3 добавлений и 5 удалений

Просмотреть файл

@ -240,7 +240,6 @@ BrowserView.prototype = {
this._contentWindow = null;
this._renderMode = 0;
this._offscreenDepth = 0;
this._aggro = false;
let cacheSize = kBrowserViewCacheSize;
try {
@ -285,11 +284,10 @@ BrowserView.prototype = {
/** When aggressive, spend more time rendering tiles. */
setAggressive: function setAggressive(aggro) {
/* this._aggro = aggro;
let wait = aggro ? kBrowserViewPrefetchBeginIdleWait : kBrowserViewPrefetchBeginIdleWaitLoading;
this._idleService.removeIdleObserver(this._idleServiceObserver, this._idleServiceWait);
this._idleService.addIdleObserver(this._idleServiceObserver, wait);
this._idleServiceWait = wait; */
this._idleServiceWait = wait;
},
getVisibleRect: function getVisibleRect() {

Просмотреть файл

@ -2791,10 +2791,10 @@ Tab.prototype = {
if (!this._loadingTimeout) {
let bv = Browser._browserView;
bv.beginBatchOperation();
bv.invalidateEntireView();
if (this == Browser.selectedTab)
bv.setAggressive(false);
Browser._browserView.beginBatchOperation();
Browser._browserView.invalidateEntireView();
// Sync up browser so previous and forward scroll positions are set. This is a good time to do
// this because the resulting invalidation is irrelevant.
Browser.scrollBrowserToContent();