rem: if (this._borderBox == null || this._borderSize < 0 || height < 0) return; this._borderBox.style.height = height - this._borderSize * 2 + "px"; var factor = this._imgHeight / (this._imgHeight - this._borderSize * 2); var dim = (height - this._borderSize * 2) * factor; var borderDim = dim * (this._borderSize / this._imgHeight); var cs = this._c.style; var ls = this._l.style; var rs = this._r.style; cs.height = rs.height = ls.height = dim + "px"; rs.width = ls.width = this._imgWidth + "px"; cs.top = rs.top = ls.top = "-" + (borderDim - this._borderSize) + "px"; ls.clip = "rect(" + borderDim + "px " + this._borderSize + "px " + (dim - borderDim) + "px auto)"; rs.clip = "rect(" + borderDim + "px auto " + (dim - borderDim) + "px " + (this._imgWidth - this._borderSize) + "px)"; this._cClip.bottom = dim - borderDim; this._cClip.top = borderDim; cs.clip = "rect(" + this._cClip.top + "px " + this._cClip.right + "px " + this._cClip.bottom + "px " + this._cClip.left + "px)"; this._lt.style.height = this._lb.style.height = this._rt.style.height = this._rb.style.height = this._borderSize + "px"; 
add: if (this._box == null || this._borderSize < 0 || height < 0) return; height -= this._borderSizeSub; this._box.style.height = height + "px"; height *= this._pctHeight; this._clipTop = Math.floor(height * this._pctTop); height = Math.floor(height); this._clipBottom = height - this._clipTop;  var cs = this._c.style, ls = this._l.style, rs = this._r.style; cs.top = ls.top = rs.top = -(this._clipTop - this._borderSize) + "px"; cs.height = ls.height = rs.height = height + "px"; ls.clip = "rect(" + this._clipTop + "px " + this._borderSize + "px " + this._clipBottom + "px auto)"; rs.clip = "rect(" + this._clipTop + "px auto " + this._clipBottom + "px " + (this._imgWidth - this._borderSize) + "px)"; cs.clip = "rect(" + this._clipTop + "px " + this._clipRight + "px " + this._clipBottom + "px " + this._clipLeft + "px)"; 
context:     setHeight: function(height) {        if (this._borderBox == null || this._borderSize < 0 || height < 0) return;        this._borderBox.style.height = height - this._borderSize * 2 + "px";        var factor = this._imgHeight / (this._imgHeight - this._borderSize * 2);        var dim = (height - this._borderSize * 2) * factor;        var borderDim = dim * (this._borderSize / this._imgHeight);        var cs = this._c.style;        var ls = this._l.style;        var rs = this._r.style;        cs.height = rs.height = ls.height = dim + "px";        rs.width = ls.width = this._imgWidth + "px";        cs.top = rs.top = ls.top = "-" + (borderDim - this._borderSize) + "px";        ls.clip = "rect(" + borderDim + "px " + this._borderSize + "px " + (dim - borderDim) + "px auto)";        rs.clip = "rect(" + borderDim + "px auto " + (dim - borderDim) + "px " + (this._imgWidth - this._borderSize) + "px)";        this._cClip.bottom = dim - borderDim;        this._cClip.top = borderDim;        cs.clip = "rect(" + this._cClip.top + "px " + this._cClip.right + "px " + this._cClip.bottom + "px " + this._cClip.left + "px)";        this._lt.style.height = this._lb.style.height = this._rt.style.height = this._rb.style.height = 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