Bug 1563484 - Apply text-only zoom to system fonts. r=dbaron
authorEmilio Cobos Álvarez <emilio@crisal.io>
Fri, 05 Jul 2019 21:31:40 +0000
changeset 544382 ea1d0ea4b5e5ae2c728ceb4bd128de3397848f82
parent 544381 689170eda327e090879f18ba6a88b83acdfe1d11
child 544383 fe26c79a01914291de159a3a2abc132e80497d2c
push id2131
push userffxbld-merge
push dateMon, 26 Aug 2019 18:30:20 +0000
treeherdermozilla-release@b19ffb3ca153 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdbaron
bugs1563484
milestone69.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1563484 - Apply text-only zoom to system fonts. r=dbaron 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: