mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Don't try to include the selection area in our text-decoration overflow if we're not selected. Bug 429595, r+sr=roc, a=beltzner
This commit is contained in:
parent
0a13ac092b
commit
8be35ebcab
@ -3689,7 +3689,8 @@ nsTextFrame::UnionTextDecorationOverflow(nsPresContext* aPresContext,
|
||||
// When this frame is not selected, the text-decoration area must be in
|
||||
// frame bounds.
|
||||
float ratio;
|
||||
if (!HasSelectionOverflowingDecorations(aPresContext, &ratio))
|
||||
if (!(GetStateBits() & NS_FRAME_SELECTED_CONTENT) ||
|
||||
!HasSelectionOverflowingDecorations(aPresContext, &ratio))
|
||||
return;
|
||||
|
||||
nsLineLayout::CombineTextDecorations(aPresContext,
|
||||
|
Loading…
Reference in New Issue
Block a user