mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-10 05:47:04 +00:00
Text decorations should not be painted on elements with 'visibity: hidden'. b=185581 r+sr=roc
This commit is contained in:
parent
68ec6bfcbc
commit
49ea5f526f
@ -145,9 +145,13 @@ nsHTMLContainerFrame::PaintDecorationsAndChildren(
|
||||
nsCOMPtr<nsIFontMetrics> fm;
|
||||
nsCompatibility mode;
|
||||
aPresContext->GetCompatibilityMode(&mode);
|
||||
PRBool isVisible;
|
||||
|
||||
if (eCompatibility_NavQuirks != mode &&
|
||||
NS_FRAME_PAINT_LAYER_FOREGROUND == aWhichLayer) {
|
||||
NS_FRAME_PAINT_LAYER_FOREGROUND == aWhichLayer &&
|
||||
NS_SUCCEEDED(IsVisibleForPainting(aPresContext, aRenderingContext,
|
||||
PR_TRUE, &isVisible)) &&
|
||||
isVisible) {
|
||||
GetTextDecorations(aPresContext, aIsBlock, decorations, underColor,
|
||||
overColor, strikeColor);
|
||||
if (decorations & (NS_STYLE_TEXT_DECORATION_UNDERLINE |
|
||||
|
@ -145,9 +145,13 @@ nsHTMLContainerFrame::PaintDecorationsAndChildren(
|
||||
nsCOMPtr<nsIFontMetrics> fm;
|
||||
nsCompatibility mode;
|
||||
aPresContext->GetCompatibilityMode(&mode);
|
||||
PRBool isVisible;
|
||||
|
||||
if (eCompatibility_NavQuirks != mode &&
|
||||
NS_FRAME_PAINT_LAYER_FOREGROUND == aWhichLayer) {
|
||||
NS_FRAME_PAINT_LAYER_FOREGROUND == aWhichLayer &&
|
||||
NS_SUCCEEDED(IsVisibleForPainting(aPresContext, aRenderingContext,
|
||||
PR_TRUE, &isVisible)) &&
|
||||
isVisible) {
|
||||
GetTextDecorations(aPresContext, aIsBlock, decorations, underColor,
|
||||
overColor, strikeColor);
|
||||
if (decorations & (NS_STYLE_TEXT_DECORATION_UNDERLINE |
|
||||
|
Loading…
Reference in New Issue
Block a user