Bug 1369615 - Avoid unnecessary struct field shorthand in webrender. r=kats
authorMike Hommey <mh+mozilla@glandium.org>
Fri, 02 Jun 2017 14:01:55 +0900
changeset 410180 1e4caa4e405acf1a7de8edca712c49f51eaeb31a
parent 410179 50545ad26ef4d4eaf00a73d62c2abc7f12a2dffa
child 410181 cee187e9cd8646d045ec33781027386952c9f683
push id7391
push usermtabara@mozilla.com
push dateMon, 12 Jun 2017 13:08:53 +0000
treeherdermozilla-beta@2191d7f87e2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats
bugs1369615, 1321847
milestone55.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 1369615 - Avoid unnecessary struct field shorthand in webrender. r=kats This applies the patch from https://github.com/servo/webrender/pull/1330 without pulling all the recent changes to webrender. Bug 1321847 will ensure further updates don't break building with older versions of rustc without meaning to.
gfx/webrender/src/renderer.rs
--- a/gfx/webrender/src/renderer.rs
+++ b/gfx/webrender/src/renderer.rs
@@ -1053,17 +1053,17 @@ impl Renderer {
         let default_font_render_mode = match (options.enable_aa, options.enable_subpixel_aa) {
             (true, true) => FontRenderMode::Subpixel,
             (true, false) => FontRenderMode::Alpha,
             (false, _) => FontRenderMode::Mono,
         };
 
         let config = FrameBuilderConfig {
             enable_scrollbars: options.enable_scrollbars,
-            default_font_render_mode,
+            default_font_render_mode: default_font_render_mode,
             debug: options.debug,
             cache_expiry_frames: options.cache_expiry_frames,
         };
 
         let device_pixel_ratio = options.device_pixel_ratio;
         let render_target_debug = options.render_target_debug;
         let payload_tx_for_backend = payload_tx.clone();
         let recorder = options.recorder;