Bug 1563484 - Apply text-only zoom to system fonts. r=dbaron a=RyanVM
authorEmilio Cobos Álvarez <emilio@crisal.io>
Fri, 05 Jul 2019 21:31:40 +0000
changeset 523085 32bae01305928d8d7f8953ba9dbeab4b66ac9126
parent 523084 962a469c7f36c46c4eab5138e4f66d44f7ec0e28
child 523086 b4a0946bc2db94c81c0cb64aec2c81e920f24c4b
push id84
push userarchaeopteryx@coole-files.de
push dateThu, 18 Jul 2019 10:06:36 +0000
treeherdermozilla-esr68@8ccf0434f421 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdbaron, RyanVM
bugs1563484
milestone68.1.0
Bug 1563484 - Apply text-only zoom to system fonts. r=dbaron a=RyanVM Differential Revision: https://phabricator.services.mozilla.com/D36893
servo/components/style/properties/longhands/font.mako.rs
--- a/servo/components/style/properties/longhands/font.mako.rs
+++ b/servo/components/style/properties/longhands/font.mako.rs
@@ -407,17 +407,17 @@ https://drafts.csswg.org/css-fonts-4/#lo
                 let ret = ComputedSystemFont {
                     font_family: FontFamily {
                         families: FontFamilyList::SharedFontList(
                             unsafe { system.fontlist.mFontlist.mBasePtr.to_safe() }
                         ),
                         is_system_font: true,
                     },
                     font_size: FontSize {
-                        size: Au(system.size).into(),
+                        size: cx.maybe_zoom_text(Au(system.size).into()),
                         keyword_info: None
                     },
                     font_weight,
                     font_stretch,
                     font_style,
                     font_size_adjust: longhands::font_size_adjust::computed_value
                                                ::T::from_gecko_adjust(system.sizeAdjust),
                     % for kwprop in kw_font_props: