From a5698368cdd7d60025b0af19019c67cddd1a5cbd Mon Sep 17 00:00:00 2001 From: Xidorn Quan Date: Tue, 24 Jan 2017 21:56:42 -0800 Subject: [PATCH] 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/servo/components/style/properties/longhand/border.mako.rs b/servo/components/style/properties/longhand/border.mako.rs index 27cd5328dd8f..2a26396845f7 100644 --- a/servo/components/style/properties/longhand/border.mako.rs +++ b/servo/components/style/properties/longhand/border.mako.rs @@ -308,15 +308,15 @@ ${helpers.single_keyword("-moz-float-edge", "content-box margin-box", fn to_css(&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(&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(()) }