if (flex == 0.0) {
if (flex == 0) {
nsBoxDebugInner::DrawSpring(nsIPresContext* aPresContext, nsIRenderingContext& aRenderingContext, float flex, nscoord x, nscoord y, nscoord size, nscoord springSize){        // PRBool h = mOuter->mHorizontal;            float p2t;        aPresContext->GetScaledPixelsToTwips(&p2t);        nscoord onePixel = NSIntPixelsToTwips(1, p2t);     // if we do draw the coils        int distance = 0;        int center = 0;        int offset = 0;        int coilSize = COIL_SIZE*onePixel;        int halfSpring = springSize/2;        distance = size;        center = y + halfSpring;        offset = x;        int coils = distance/coilSize;        int halfCoilSize = coilSize/2;        if (flex == 0.0) {            DrawLine(aRenderingContext, x,y + springSize/2, x + size, y + springSize/2);        } else {            for (int i=0; i < coils; i++)            {                   DrawLine(aRenderingContext, offset, center+halfSpring, offset+halfCoilSize, center-halfSpring);                   DrawLine(aRenderingContext, offset+halfCoilSize, center-halfSpring, offset+coilSize, center+halfSpring);                   offset += coilSize;            }        }        FillRect(aRenderingContext, x + size - springSize/2, y, springSize/2, springSize);        FillRect(aRenderingContext, x, y, springSize/2, springSize);        //DrawKnob(aPresContext, aRenderingContext, x + size - springSize, y, springSize);}