mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
Check the visibilty before painting the fraction line and the radical bar, b=275823, r+sr=roc
This commit is contained in:
parent
d3b79057a1
commit
fe00b25319
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user