mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 534737. move scrollContentToTop back to onLocationChange. r=mfinkle
This commit is contained in:
parent
a0b0a0a39e
commit
e2e7ef16ce
@ -2569,6 +2569,10 @@ ProgressController.prototype = {
|
||||
|
||||
if (this._tab == Browser.selectedTab) {
|
||||
BrowserUI.updateURI();
|
||||
|
||||
// We're about to have new page content, to scroll the content area
|
||||
// to the top so the new paints will draw correctly.
|
||||
Browser.scrollContentToTop();
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -2764,14 +2768,9 @@ Tab.prototype = {
|
||||
|
||||
bv.commitBatchOperation();
|
||||
|
||||
if (this._loadingPaintCount == 0)
|
||||
Browser.scrollContentToTop();
|
||||
|
||||
// kick ourselves off 2s later while we're still loading
|
||||
bv.beginBatchOperation();
|
||||
this._loadingTimeout = setTimeout(this._resizeAndPaint, 2000);
|
||||
|
||||
this._loadingPaintCount++;
|
||||
},
|
||||
|
||||
_startResizeAndPaint: function _startResizeAndPaint() {
|
||||
@ -2780,7 +2779,6 @@ Tab.prototype = {
|
||||
|
||||
Browser._browserView.beginBatchOperation();
|
||||
this._loadingTimeout = setTimeout(this._resizeAndPaint, 2000);
|
||||
this._loadingPaintCount = 0;
|
||||
},
|
||||
|
||||
_stopResizeAndPaint: function _stopResizeAndPaint() {
|
||||
|
Loading…
Reference in New Issue
Block a user