for (var x = 0; x < width; x += tileWidth) { for (var y = 0; y < height; y += tileHeight) { ctx.drawImage(this._image, x, y, tileWidth, tileHeight); } } 
ctx.fillStyle = ctx.createPattern(this._image, "repeat"); ctx.scale(width / screen.width, height / screen.height); ctx.fillRect(0, 0, screen.width, screen.height); 
  _tileImage: function ()  {    var canvas = document.createElementNS(kHTML_NS, "canvas");    var width = this._monitor.boxObject.width;    var height = this._monitor.boxObject.height;    canvas.width = width;    canvas.height = height;    var tileWidth = Math.floor(this._image.naturalWidth * width / screen.width);    var tileHeight = Math.floor(this._image.naturalHeight * height / screen.height);    var ctx = canvas.getContext("2d");    for (var x = 0; x < width; x += tileWidth) {      for (var y = 0; y < height; y += tileHeight) {        ctx.drawImage(this._image, x, y, tileWidth, tileHeight);      }    }    this._monitor.appendChild(canvas);  },
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/7c8b18e1ce5cfbf21c09a94ac587cbe42f669635/setDesktopBackground.js/buggy/browser/components/shell/content/setDesktopBackground.js