style: Don't apply minimum font sizes to SVG text.

Differential Revision: https://phabricator.services.mozilla.com/D74581
This commit is contained in:
longsonr 2020-05-13 09:10:54 +00:00 committed by Emilio Cobos Álvarez
parent ec6ecf7d21
commit 4359aae44e
3 changed files with 8 additions and 8 deletions

View file

@ -223,8 +223,8 @@ impl<'a> Context<'a> {
pub fn maybe_zoom_text(&self, size: CSSPixelLength) -> CSSPixelLength {
// We disable zoom for <svg:text> by unsetting the
// -x-text-zoom property, which leads to a false value
// in mAllowZoom
if self.style().get_font().gecko.mAllowZoom {
// in mAllowZoomAndMinSize
if self.style().get_font().gecko.mAllowZoomAndMinSize {
self.device().zoom_text(Au::from(size)).into()
} else {
size