From 1da0e8a095d82dd6b9ad0c0a45a7ee3b9d80ded7 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Tue, 13 Feb 2018 19:26:43 +0100 Subject: Never shrink line heights as a result of minimumFontSize. See: MoonchildProductions/Pale-Moon#1614. --- layout/style/nsRuleNode.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'layout') diff --git a/layout/style/nsRuleNode.cpp b/layout/style/nsRuleNode.cpp index b22002d87..fa29fe0f1 100644 --- a/layout/style/nsRuleNode.cpp +++ b/layout/style/nsRuleNode.cpp @@ -4686,7 +4686,8 @@ nsRuleNode::ComputeTextData(void* aStartStruct, if (font->mSize != 0) { lh = nscoord(float(lh) * float(font->mFont.size) / float(font->mSize)); } else { - lh = minimumFontSize; + // Never shrink line heights as a result of minFontSize + lh = std::max(lh, minimumFontSize); } } text->mLineHeight.SetCoordValue(lh); -- cgit v1.2.3