Bug 250269. Outlines not getting painted on buttons, radios, checkboxes, tables and table cells. r+sr=roc

This commit is contained in:
aaronleventhal@moonset.net
2004-11-11 15:07:22 +00:00
parent d33b619b5b
commit c2cc498217
14 changed files with 94 additions and 4 deletions

View File

@@ -356,6 +356,12 @@ nsHTMLButtonControlFrame::Paint(nsPresContext* aPresContext,
#endif
// Paint outline
const nsStyleOutline* outlineStyle = GetStyleOutline();
nsCSSRendering::PaintOutline(aPresContext, aRenderingContext, this,
aDirtyRect, rect, *borderStyle, *outlineStyle,
mStyleContext, 0);
// to draw border when selected in editor
return nsFrame::Paint(aPresContext, aRenderingContext, aDirtyRect, aWhichLayer);
}
@@ -481,6 +487,9 @@ nsHTMLButtonControlFrame::Reflow(nsPresContext* aPresContext,
aDesiredSize.ascent += aReflowState.mComputedBorderPadding.top + focusPadding.top;
aDesiredSize.descent = aDesiredSize.height - aDesiredSize.ascent;
nsRect buttonRect(0, 0, aDesiredSize.width, aDesiredSize.height);
FinishAndStoreOverflow(&buttonRect, buttonRect.Size());
aStatus = NS_FRAME_COMPLETE;
nsFormControlFrame::SetupCachedSizes(mCacheSize, mCachedAscent,