diff options
author | Xidorn Quan <me@upsuper.org> | 2017-01-24 18:44:23 +1100 |
---|---|---|
committer | Xidorn Quan <me@upsuper.org> | 2017-01-24 18:44:23 +1100 |
commit | d814c5b65930baee5ae597f77871d2e575b4105c (patch) | |
tree | b5fb4aac126098ecfdda98c39b60cd6dd120367f | |
parent | ca6376a7142640185f21beca4b11011e8367ec91 (diff) | |
download | servo-d814c5b65930baee5ae597f77871d2e575b4105c.tar.gz servo-d814c5b65930baee5ae597f77871d2e575b4105c.zip |
Fix serialization of border-image-repeat
-rw-r--r-- | components/style/properties/longhand/border.mako.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/style/properties/longhand/border.mako.rs b/components/style/properties/longhand/border.mako.rs index 27cd5328dd8..2a26396845f 100644 --- a/components/style/properties/longhand/border.mako.rs +++ b/components/style/properties/longhand/border.mako.rs @@ -308,15 +308,15 @@ ${helpers.single_keyword("-moz-float-edge", "content-box margin-box", 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(()) } |