Bug 542607 - No checkerboarding for pages with animation [r=mark.finkle r=vingtetun]

This commit is contained in:
Benjamin Stover 2010-02-18 20:58:24 -05:00
Родитель 1f429792c9
Коммит a536b6bc80
2 изменённых файлов: 4 добавлений и 3 удалений

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

@ -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 {