rem: if (this._borderBox == null || this._borderSize < 0 || width < 0) return; this._borderBox.style.width = width - this._borderSize * 2 + "px"; var factor = this._imgWidth / (this._imgWidth - this._borderSize * 2); var dim = (width - this._borderSize * 2) * factor; var borderDim = dim * (this._borderSize / this._imgWidth); var cs = this._c.style; var ts = this._t.style; var bs = this._b.style; cs.width = bs.width = ts.width = dim + "px"; bs.height = ts.height = this._imgHeight + "px"; cs.left = bs.left = ts.left = "-" + (borderDim - this._borderSize) + "px"; ts.clip = "rect(auto " + (dim - borderDim) + "px " + this._borderSize + "px " + borderDim + "px)"; bs.clip = "rect(" + (this._imgHeight - this._borderSize) + "px " + (dim - borderDim) + "px auto " + borderDim + "px)"; this._cClip.right = dim - borderDim; this._cClip.left = borderDim; cs.clip = "rect(" + this._cClip.top + "px " + this._cClip.right + "px " + this._cClip.bottom + "px " + this._cClip.left + "px)"; this._lt.style.width = this._lb.style.width = this._rt.style.width = this._rb.style.width = this._borderSize + "px"; 
add: if (this._box == null || this._borderSize < 0 || width < 0) return; width -= this._borderSizeSub; this._box.style.width = width + "px"; width = width * this._pctWidth; this._clipLeft = Math.floor(width * this._pctLeft); width = Math.floor(width); this._clipRight = width - this._clipLeft;  var cs = this._c.style, ts = this._t.style, bs = this._b.style; cs.left = ts.left = bs.left = -(this._clipLeft - this._borderSize) + "px"; cs.width = ts.width = bs.width = width + "px"; ts.clip = "rect(auto " + this._clipRight + "px " + this._borderSize + "px " + this._clipLeft + "px)"; bs.clip = "rect(" + (this._imgHeight - this._borderSize) + "px " + this._clipRight + "px auto " + this._clipLeft + "px)"; cs.clip = "rect(" + this._clipTop + "px " + this._clipRight + "px " + this._clipBottom + "px " + this._clipLeft + "px)"; 
context:     setWidth: function(width) {        if (this._borderBox == null || this._borderSize < 0 || width < 0) return;        this._borderBox.style.width = width - this._borderSize * 2 + "px";        var factor = this._imgWidth / (this._imgWidth - this._borderSize * 2);        var dim = (width - this._borderSize * 2) * factor;        var borderDim = dim * (this._borderSize / this._imgWidth);        var cs = this._c.style;        var ts = this._t.style;        var bs = this._b.style;        cs.width = bs.width = ts.width = dim + "px";        bs.height = ts.height = this._imgHeight + "px";        cs.left = bs.left = ts.left = "-" + (borderDim - this._borderSize) + "px";        ts.clip = "rect(auto " + (dim - borderDim) + "px " + this._borderSize + "px " + borderDim + "px)";        bs.clip = "rect(" + (this._imgHeight - this._borderSize) + "px " + (dim - borderDim) + "px auto " + borderDim + "px)";        this._cClip.right = dim - borderDim;        this._cClip.left = borderDim;        cs.clip = "rect(" + this._cClip.top + "px " + this._cClip.right + "px " + this._cClip.bottom + "px " + this._cClip.left + "px)";        this._lt.style.width = this._lb.style.width = this._rt.style.width = this._rb.style.width = this._borderSize + "px";    },
meta: 5515	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5515/d532c0ea03ef1c91856bba5408f049541b39c2ba/BorderImage.js/clean/src/thinwire/render/web/resources/BorderImage.js