servo: Merge #15173 - Fix serialization of border-image-repeat (from upsuper:border-image-repeat); r=emilio
authorXidorn Quan <me@upsuper.org>
Tue, 24 Jan 2017 21:56:42 -0800
changeset 340713 9afc35c1dd88d5839e968653bf00bb39e5bd5b14
parent 340712 2e8201bd1f9bc2b90ab2191b85134132a5cb226e
child 340714 a54e22261dd928ff600ec95d975063371ac26b7e
push id86548
push userkwierso@gmail.com
push dateSat, 04 Feb 2017 01:35:21 +0000
treeherdermozilla-inbound@e7b96d015d03 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersemilio
servo: Merge #15173 - Fix serialization of border-image-repeat (from upsuper:border-image-repeat); r=emilio Source-Repo: https://github.com/servo/servo Source-Revision: 742ed2e03c4c083d911525b6a2bfe0de31b3668d
servo/components/style/properties/longhand/border.mako.rs
--- a/servo/components/style/properties/longhand/border.mako.rs
+++ b/servo/components/style/properties/longhand/border.mako.rs
@@ -303,25 +303,25 @@
                              "round" => Round,
                              "space" => Space);
 
 
     impl ToCss for computed_value::T {
         fn to_css<W>(&self, dest: &mut W) -> fmt::Result where W: fmt::Write {
             try!(self.0.to_css(dest));
             try!(dest.write_str(" "));
-            self.0.to_css(dest)
+            self.1.to_css(dest)
         }
     }
     impl ToCss for SpecifiedValue {
         fn to_css<W>(&self, dest: &mut W) -> fmt::Result where W: fmt::Write {
             try!(self.0.to_css(dest));
-            if self.1.is_some() {
+            if let Some(second) = self.1 {
                 try!(dest.write_str(" "));
-                try!(self.0.to_css(dest));
+                try!(second.to_css(dest));
             }
             Ok(())
         }
     }
 
     #[inline]
     pub fn get_initial_value() -> computed_value::T {
         computed_value::T(RepeatKeyword::Stretch, RepeatKeyword::Stretch)