Use nsIFrame::GetBorderRadii so that we pick up when it is overridden. (Bug 459144, patch 7) r=roc a2.0=blocking:beta6+

This commit is contained in:
L. David Baron
2010-09-07 15:20:35 -07:00
parent 617212bb46
commit ff44729e09
3 changed files with 24 additions and 17 deletions

View File

@@ -279,6 +279,8 @@ nsFieldSetFrame::PaintBorderBackground(nsIRenderingContext& aRenderingContext,
// if the border is smaller than the legend. Move the border down
// to be centered on the legend.
// FIXME: This means border-radius clamping is incorrect; we should
// override nsIFrame::GetBorderRadii.
if (topBorder < mLegendRect.height)
yoff = (mLegendRect.height - topBorder)/2;