зеркало из https://github.com/mozilla/gecko-dev.git
Check the visibilty before painting the fraction line and the radical bar, b=275823, r+sr=roc
This commit is contained in:
Родитель
d3b79057a1
Коммит
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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче