зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1646224 - Fix a typo in windows-only code.
MANUAL PUSH: a11y orange CLOSED TREE
This commit is contained in:
Родитель
5d8eb750cd
Коммит
f81ececcb9
|
@ -10246,8 +10246,9 @@ void nsLayoutUtils::ComputeSystemFont(nsFont* aSystemFont,
|
||||||
// always use 2 points smaller than what the browser has defined as
|
// always use 2 points smaller than what the browser has defined as
|
||||||
// the default proportional font.
|
// the default proportional font.
|
||||||
// Assumption: system defined font is proportional
|
// Assumption: system defined font is proportional
|
||||||
aSystemFont->size = Length::FromPixels(
|
auto newSize =
|
||||||
std::max(aDefaultVariableFont->size.ToCSSPixels() - 2.0f, 0.0f));
|
aDefaultVariableFont->size.ToCSSPixels() - CSSPixel::FromPoints(2.0f);
|
||||||
|
aSystemFont->size = Length::FromPixels(std::max(float(newSize), 0.0f));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче