Fills in background color webshell gets centered and the size is large then the minium

This commit is contained in:
rods@netscape.com
1999-09-04 13:34:40 +00:00
parent 11b479e053
commit dbaee656fc
@@ -612,6 +612,9 @@ nsGfxTextControlFrame::PaintTextControl(nsIPresContext& aPresContext,
aStyleContext, skipSides, nsnull, borderTwips, PR_TRUE);
} else {
const nsStyleColor* color = (const nsStyleColor*)mStyleContext->GetStyleData(eStyleStruct_Color);
nsCSSRendering::PaintBackground(aPresContext, aRenderingContext, this,
aDirtyRect, rect, *color, *mySpacing, 0, 0);
//PaintTextControl(aPresContext, aRenderingContext, text, mStyleContext, rect);
nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, this,
aDirtyRect, rect, *mySpacing, aStyleContext, skipSides);
@@ -957,7 +960,7 @@ nsGfxTextControlFrame::Reflow(nsIPresContext& aPresContext,
// Get the CSS border
const nsStyleSpacing* spacing;
GetStyleData(eStyleStruct_Spacing, (const nsStyleStruct *&)spacing);
spacing->CalcBorderFor(this, border);
spacing->CalcBorderPaddingFor(this, border);
}
float t2p;