зеркало из https://github.com/mozilla/gecko-dev.git
Differences between the patch in 533502 and what was pushed. r=mfinkle
This commit is contained in:
Родитель
aa2d7d3632
Коммит
0e2dd79728
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче