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