Never shrink line heights as a result of minimumFontSize.

See: MoonchildProductions/Pale-Moon#1614.
This commit is contained in:
wolfbeast 2018-02-13 19:26:43 +01:00 committed by Roy Tam
commit bfc4f952ac

View file

@ -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);