var buffer = (this.buffer) ? this.buffer*1.5 : 1; while (true) { var tlLayer = this.grid[0][0].position; var tlViewPort = this.map.getViewPortPxFromLayerPx(tlLayer); if (tlViewPort.x > -this.tileSize.w * (buffer - 1)) { this.shiftColumn(true); } else if (tlViewPort.x < -this.tileSize.w * buffer) { this.shiftColumn(false); } else if (tlViewPort.y > -this.tileSize.h * (buffer - 1)) { this.shiftRow(true); } else if (tlViewPort.y < -this.tileSize.h * buffer) { this.shiftRow(false); } else { break; } }; if (this.buffer == 0) { for (var r=0, rl=this.grid.length; r<rl; r++) { var row = this.grid[r]; for (var c=0, cl=row.length; c<cl; c++) { var tile = row[c]; if (!tile.drawn && tile.bounds.intersectsBounds(bounds, false)) { tile.draw(); } } } 
      if (forceReTile || !tilesBounds.containsBounds(bounds, true)) { this.initGriddedTiles(bounds); } else {  this.moveGriddedTiles(bounds); 
    moveTo:function(bounds, zoomChanged, dragging) {        OpenLayers.Layer.HTTPRequest.prototype.moveTo.apply(this, arguments);                if (bounds == null) {            bounds = this.map.getExtent();        }        if (bounds != null) {            if (!this.grid.length || zoomChanged                 || !this.getGridBounds().containsBounds(bounds, true)) {                 this._initTiles();            } else {                var buffer = (this.buffer) ? this.buffer*1.5 : 1;                while (true) {                    var tlLayer = this.grid[0][0].position;                    var tlViewPort =                         this.map.getViewPortPxFromLayerPx(tlLayer);                    if (tlViewPort.x > -this.tileSize.w * (buffer - 1)) {                        this.shiftColumn(true);                    } else if (tlViewPort.x < -this.tileSize.w * buffer) {                        this.shiftColumn(false);                    } else if (tlViewPort.y > -this.tileSize.h * (buffer - 1)) {                        this.shiftRow(true);                    } else if (tlViewPort.y < -this.tileSize.h * buffer) {                        this.shiftRow(false);                    } else {                        break;                    }                };                if (this.buffer == 0) {                    for (var r=0, rl=this.grid.length; r<rl; r++) {                        var row = this.grid[r];                        for (var c=0, cl=row.length; c<cl; c++) {                            var tile = row[c];                            if (!tile.drawn && tile.bounds.intersectsBounds(bounds, false)) {                                tile.draw();                            }                        }                    }                }            }        }    },
2032	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2032/921347a81abbd7e6bd7240cfea7c075b0b7cfbdc/Grid.js/buggy/lib/OpenLayers/Layer/Grid.js