rem: var tileWidth = Math.floor(this._image.naturalWidth * width / screen.width); var tileHeight = Math.floor(this._image.naturalHeight * height / screen.height); 
context:   _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);  },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10234/7c8b18e1ce5cfbf21c09a94ac587cbe42f669635/setDesktopBackground.js/buggy/browser/components/shell/content/setDesktopBackground.js