mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 05:48:26 +00:00
Patch from Neil Deakin <enndeakin@sympatico.ca> to fix overlong button underlines (214956, r+sr=dbaron).
This commit is contained in:
parent
697fa403a0
commit
bbfcf997ef
@ -401,17 +401,17 @@ nsTextBoxFrame::PaintTitle(nsIPresContext* aPresContext,
|
||||
fontMet->GetUnderline(offset, size);
|
||||
if (decorations & NS_FONT_DECORATION_OVERLINE) {
|
||||
aRenderingContext.SetColor(overColor);
|
||||
aRenderingContext.FillRect(textRect.x, textRect.y, mRect.width, size);
|
||||
aRenderingContext.FillRect(textRect.x, textRect.y, textRect.width, size);
|
||||
}
|
||||
if (decorations & NS_FONT_DECORATION_UNDERLINE) {
|
||||
aRenderingContext.SetColor(underColor);
|
||||
aRenderingContext.FillRect(textRect.x, textRect.y + baseline - offset, mRect.width, size);
|
||||
aRenderingContext.FillRect(textRect.x, textRect.y + baseline - offset, textRect.width, size);
|
||||
}
|
||||
}
|
||||
if (decorations & NS_FONT_DECORATION_LINE_THROUGH) {
|
||||
fontMet->GetStrikeout(offset, size);
|
||||
aRenderingContext.SetColor(strikeColor);
|
||||
aRenderingContext.FillRect(textRect.x, textRect.y + baseline - offset, mRect.width, size);
|
||||
aRenderingContext.FillRect(textRect.x, textRect.y + baseline - offset, textRect.width, size);
|
||||
}
|
||||
|
||||
aRenderingContext.SetFont(fontStyle->mFont, nsnull);
|
||||
|
Loading…
x
Reference in New Issue
Block a user