boxh = applyHeightLimits(boxh, box, dec, theight);
<BUG>boxw = Math.round(intr * boxh);
}</BUG>
else if (width != null && height == null)
<BUG>{
int autow = Math.round(intr * boxh);
boxw = dec.getLength(box.getLengthValue("width"), width == CSSProperty.Width.AUTO, boxw, autow, twidth);</BUG>
boxw = applyWidthLimits(boxw, box, dec, twidth);
<BUG>boxh = Math.round(boxw / intr);
}</BUG>
else

boxh = applyHeightLimits(boxh, box, dec, theight);
boxw = Math.round(intr * boxh);
boxw = applyWidthLimits(boxw, box, dec, twidth);
}
else if (width != null && height == null)
{
boxw = dec.getLength(vWidth, false, boxw, 0, twidth);
boxw = applyWidthLimits(boxw, box, dec, twidth);
boxh = Math.round(boxw / intr);
boxh = applyHeightLimits(boxh, box, dec, theight);
}
