Skip to content

Commit

Permalink
Auto merge of #15173 - upsuper:border-image-repeat, r=emilio
Browse files Browse the repository at this point in the history
Fix serialization of border-image-repeat

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15173)
<!-- Reviewable:end -->
  • Loading branch information
bors-servo committed Jan 25, 2017
2 parents 6fc0d2f + d814c5b commit 742ed2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/style/properties/longhand/border.mako.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
Expand Down

0 comments on commit 742ed2e

Please sign in to comment.