зеркало из https://github.com/mozilla/pjs.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:
Родитель
500b411fe0
Коммит
391d55f5a1
|
@ -3689,7 +3689,8 @@ nsTextFrame::UnionTextDecorationOverflow(nsPresContext* aPresContext,
|
||||||
// When this frame is not selected, the text-decoration area must be in
|
// When this frame is not selected, the text-decoration area must be in
|
||||||
// frame bounds.
|
// frame bounds.
|
||||||
float ratio;
|
float ratio;
|
||||||
if (!HasSelectionOverflowingDecorations(aPresContext, &ratio))
|
if (!(GetStateBits() & NS_FRAME_SELECTED_CONTENT) ||
|
||||||
|
!HasSelectionOverflowingDecorations(aPresContext, &ratio))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
nsLineLayout::CombineTextDecorations(aPresContext,
|
nsLineLayout::CombineTextDecorations(aPresContext,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче