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
Родитель d3b79057a1
Коммит fe00b25319
3 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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);

Просмотреть файл

@ -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);