Bug 1455848 - fix wrench font_key_from_name parameter order. r=me CLOSED TREE
☠☠ backed out by a237a1078ce3 ☠ ☠
authorLee Salzman <lsalzman@mozilla.com>
Wed, 23 Jan 2019 17:04:13 -0500
changeset 515224 d56504db04eae60a686340716dd8e5b95eae31f1
parent 515223 8129ef9863e5cf6f6665dd7772569724c6702dfb
child 515225 d9ca9091f36c9f4622a15f4d1d0f8afcd94aae66
push id1953
push userffxbld-merge
push dateMon, 11 Mar 2019 12:10:20 +0000
treeherdermozilla-release@9c35dcbaa899 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1455848
milestone66.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 1455848 - fix wrench font_key_from_name parameter order. r=me CLOSED TREE
gfx/wr/wrench/src/wrench.rs
--- a/gfx/wr/wrench/src/wrench.rs
+++ b/gfx/wr/wrench/src/wrench.rs
@@ -389,18 +389,18 @@ impl Wrench {
         key
     }
 
     #[cfg(target_os = "windows")]
     pub fn font_key_from_name(&mut self, font_name: &str) -> FontKey {
         self.font_key_from_properties(
             font_name,
             dwrote::FontWeight::Regular.to_u32(),
+            dwrote::FontStyle::Normal.to_u32(),
             dwrote::FontStretch::Normal.to_u32(),
-            dwrote::FontStyle::Normal.to_u32(),
         )
     }
 
     #[cfg(target_os = "windows")]
     pub fn font_key_from_properties(
         &mut self,
         family: &str,
         weight: u32,