зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
adba8b45ad
Коммит
669868b0c3
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче