зеркало из https://github.com/mozilla/pjs.git
Bug 542607 - No checkerboarding for pages with animation [r=mark.finkle r=vingtetun]
This commit is contained in:
Родитель
1f429792c9
Коммит
a536b6bc80
|
@ -517,7 +517,7 @@ BrowserView.prototype = {
|
|||
rects.push(r);
|
||||
}
|
||||
|
||||
tm.dirtyRects(rects, this.isRendering());
|
||||
tm.dirtyRects(rects, this.isRendering(), true);
|
||||
},
|
||||
|
||||
/** If browser scrolls, pan content to new scroll area. */
|
||||
|
|
|
@ -268,7 +268,7 @@ TileManager.prototype = {
|
|||
this.criticalRectPaint();
|
||||
},
|
||||
|
||||
dirtyRects: function dirtyRects(rects, doCriticalRender) {
|
||||
dirtyRects: function dirtyRects(rects, doCriticalRender, keepTileInDom) {
|
||||
let outsideIsDirty = false;
|
||||
let criticalIsDirty = false;
|
||||
let criticalRect = this._criticalRect;
|
||||
|
@ -282,7 +282,8 @@ TileManager.prototype = {
|
|||
|
||||
if (!tile.boundRect.intersects(criticalRect)) {
|
||||
// Dirty tile outside of viewport. Just remove and redraw later.
|
||||
this._removeTileSafe(tile);
|
||||
if (!keepTileInDom)
|
||||
this._removeTileSafe(tile);
|
||||
crawler.enqueue(tile.i, tile.j);
|
||||
outsideIsDirty = true;
|
||||
} else {
|
||||
|
|
Загрузка…
Ссылка в новой задаче