зеркало из https://github.com/mozilla/gecko-dev.git
Text decorations should not be painted on elements with 'visibity: hidden'. b=185581 r+sr=roc
This commit is contained in:
Родитель
68ec6bfcbc
Коммит
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 |
|
||||
|
|
Загрузка…
Ссылка в новой задаче