Remove quirks mode check that should have been removed when standards-mode and quirks-mode text-decorations were merged in bug 403524, changeset 83b2648ee442. (Bug 680505, patch 2) r=roc

This code is a little bit sketchy, but given that text-decoration
drawing is the same across modes we shouldn't have a quirks mode check
here (though there's a decent argument to be made that we shouldn't be
checking text decorations at all).
This commit is contained in:
L. David Baron 2011-08-20 21:35:56 -04:00
Родитель 056a511714
Коммит c70deecad0
1 изменённых файлов: 1 добавлений и 2 удалений

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

@ -6628,8 +6628,7 @@ RoundOut(const gfxRect& aRect)
nsRect
nsTextFrame::ComputeTightBounds(gfxContext* aContext) const
{
if ((GetStyleContext()->HasTextDecorationLines() &&
eCompatibility_NavQuirks == PresContext()->CompatibilityMode()) ||
if (GetStyleContext()->HasTextDecorationLines() ||
(GetStateBits() & TEXT_HYPHEN_BREAK)) {
// This is conservative, but OK.
return GetVisualOverflowRect();