Check the visibilty before painting the fraction line and the radical bar, b=275823, r+sr=roc

This commit is contained in:
rbs%maths.uq.edu.au 2004-12-30 22:49:23 +00:00
parent d3b79057a1
commit fe00b25319
3 changed files with 7 additions and 2 deletions

View File

@ -233,6 +233,7 @@ nsMathMLmfracFrame::Paint(nsPresContext* aPresContext,
aDirtyRect, aWhichLayer, this);
}
else if ((NS_FRAME_PAINT_LAYER_FOREGROUND == aWhichLayer) &&
mStyleContext->GetStyleVisibility()->IsVisible() &&
!NS_MATHML_HAS_ERROR(mPresentationData.flags) &&
!mLineRect.IsEmpty()) {
// paint the fraction line with the current text color

View File

@ -146,7 +146,9 @@ nsMathMLmrootFrame::Paint(nsPresContext* aPresContext,
mSqrChar.Paint(aPresContext, aRenderingContext,
aDirtyRect, aWhichLayer, this);
if (NS_FRAME_PAINT_LAYER_FOREGROUND == aWhichLayer && !mBarRect.IsEmpty()) {
if (NS_FRAME_PAINT_LAYER_FOREGROUND == aWhichLayer &&
mStyleContext->GetStyleVisibility()->IsVisible() &&
!mBarRect.IsEmpty()) {
// paint the overline bar
const nsStyleColor* color = GetStyleColor();
aRenderingContext.SetColor(color->mColor);

View File

@ -156,7 +156,9 @@ nsMathMLmsqrtFrame::Paint(nsPresContext* aPresContext,
mSqrChar.Paint(aPresContext, aRenderingContext,
aDirtyRect, aWhichLayer, this);
if (NS_FRAME_PAINT_LAYER_FOREGROUND == aWhichLayer && !mBarRect.IsEmpty()) {
if (NS_FRAME_PAINT_LAYER_FOREGROUND == aWhichLayer &&
mStyleContext->GetStyleVisibility()->IsVisible() &&
!mBarRect.IsEmpty()) {
// paint the overline bar
const nsStyleColor* color = GetStyleColor();
aRenderingContext.SetColor(color->mColor);