mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +09:00
Never shrink line heights as a result of minimumFontSize.
See: MoonchildProductions/Pale-Moon#1614.
This commit is contained in:
parent
75f75a6a68
commit
bfc4f952ac
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue