mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1054161. Don't build display items for text with alpha=0. r=dbaron
--HG-- extra : rebase_source : 869a05a652a3bc6e8e122d34fb166ed9fbbdaa5c
This commit is contained in:
parent
5ae2396923
commit
bd73a2178e
@ -4580,6 +4580,15 @@ nsTextFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
|
||||
DO_GLOBAL_REFLOW_COUNT_DSP("nsTextFrame");
|
||||
|
||||
if (NS_GET_A(StyleColor()->mColor) == 0 &&
|
||||
!IsSVGText() && !IsSelected() && !StyleText()->HasTextShadow()) {
|
||||
TextDecorations textDecs;
|
||||
GetTextDecorations(PresContext(), eResolvedColors, textDecs);
|
||||
if (!textDecs.HasDecorationLines()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
aLists.Content()->AppendNewToTop(
|
||||
new (aBuilder) nsDisplayText(aBuilder, this));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user