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 481528 ea1d0ea4b5e5ae2c728ceb4bd128de3397848f82
parent 481527 689170eda327e090879f18ba6a88b83acdfe1d11
child 481529 fe26c79a01914291de159a3a2abc132e80497d2c
push id36249
push userrmaries@mozilla.com
push dateSat, 06 Jul 2019 21:46:28 +0000
treeherdermozilla-central@88f4a687f039 [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: