springSize = debugBorder.left - onePixel*2;
springSize = debugBorder.left - onePixel*4;
nsBoxDebugInner::PaintSprings(nsIPresContext& aPresContext, nsIRenderingContext& aRenderingContext, const nsRect& aDirtyRect){            // remove our border        const nsStyleSpacing* spacing;        nsresult rv = mOuter->GetStyleData(eStyleStruct_Spacing,                       (const nsStyleStruct*&) spacing);        nsMargin border(0,0,0,0);        spacing->GetBorderPadding(border);        float p2t;        aPresContext.GetScaledPixelsToTwips(&p2t);        nscoord onePixel = NSIntPixelsToTwips(1, p2t);        nsIStyleContext* debugStyle;        if (mOuter->mHorizontal)            debugStyle = mHorizontalDebugStyle;        else            debugStyle = mVerticalDebugStyle;        const nsStyleSpacing* debugSpacing =        (const nsStyleSpacing*)debugStyle->GetStyleData(eStyleStruct_Spacing);        const nsStyleColor* debugColor =        (const nsStyleColor*)debugStyle->GetStyleData(eStyleStruct_Color);        nsRect inner(0,0,mOuter->mRect.width, mOuter->mRect.height);        inner.Deflate(border);        // paint our debug border        nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, mOuter,                                    aDirtyRect, inner, *debugSpacing, debugStyle, 0);        // get the debug border dimensions        nsMargin debugBorder(0,0,0,0);        debugSpacing->GetBorderPadding(debugBorder);        // paint the springs.        nscoord x, y, borderSize, springSize;                aRenderingContext.SetColor(debugColor->mColor);                if (mOuter->mHorizontal)         {            x = inner.x;            y = inner.y + onePixel;            x += debugBorder.left;            springSize = debugBorder.top - onePixel*2;        } else {            x = inner.y;            y = inner.x + onePixel;            x += debugBorder.top;            springSize = debugBorder.left - onePixel*2;        }        for (int i=0; i < mOuter->mSpringCount; i++) {            nsSize& size = mOuter->mSprings[i].calculatedSize;            if (!mOuter->mSprings[i].collapsed) {                if (mOuter->mHorizontal)                     borderSize = size.width;                else                     borderSize = size.height;                DrawSpring(aPresContext, aRenderingContext, mOuter->mSprings[i].flex, x, y, borderSize, springSize);                x += borderSize;            }        }}