Text decorations should not be painted on elements with 'visibity: hidden'. b=185581 r+sr=roc

This commit is contained in:
dbaron%fas.harvard.edu 2002-12-19 00:24:18 +00:00
Родитель 68ec6bfcbc
Коммит 49ea5f526f
2 изменённых файлов: 10 добавлений и 2 удалений

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

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