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:
bzbarsky@mit.edu 2008-04-21 20:28:14 -07:00
Родитель adba8b45ad
Коммит 669868b0c3
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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,