diff --git a/layout/generic/nsTextFrameThebes.cpp b/layout/generic/nsTextFrameThebes.cpp index 0953044c876c..25988c4a70d1 100644 --- a/layout/generic/nsTextFrameThebes.cpp +++ b/layout/generic/nsTextFrameThebes.cpp @@ -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();