Bug 1646224 - Fix a typo in windows-only code.

MANUAL PUSH: a11y orange

CLOSED TREE
This commit is contained in:
Emilio Cobos Álvarez 2020-06-22 13:13:05 +02:00
Родитель 5d8eb750cd
Коммит f81ececcb9
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -10246,8 +10246,9 @@ void nsLayoutUtils::ComputeSystemFont(nsFont* aSystemFont,
// always use 2 points smaller than what the browser has defined as
// the default proportional font.
// Assumption: system defined font is proportional
aSystemFont->size = Length::FromPixels(
std::max(aDefaultVariableFont->size.ToCSSPixels() - 2.0f, 0.0f));
auto newSize =
aDefaultVariableFont->size.ToCSSPixels() - CSSPixel::FromPoints(2.0f);
aSystemFont->size = Length::FromPixels(std::max(float(newSize), 0.0f));
}
#endif
}