mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Fix serialization of border-image-repeat
This commit is contained in:
parent
ca6376a714
commit
d814c5b659
1 changed files with 3 additions and 3 deletions
|
@ -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 {
|
fn to_css<W>(&self, dest: &mut W) -> fmt::Result where W: fmt::Write {
|
||||||
try!(self.0.to_css(dest));
|
try!(self.0.to_css(dest));
|
||||||
try!(dest.write_str(" "));
|
try!(dest.write_str(" "));
|
||||||
self.0.to_css(dest)
|
self.1.to_css(dest)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
impl ToCss for SpecifiedValue {
|
impl ToCss for SpecifiedValue {
|
||||||
fn to_css<W>(&self, dest: &mut W) -> fmt::Result where W: fmt::Write {
|
fn to_css<W>(&self, dest: &mut W) -> fmt::Result where W: fmt::Write {
|
||||||
try!(self.0.to_css(dest));
|
try!(self.0.to_css(dest));
|
||||||
if self.1.is_some() {
|
if let Some(second) = self.1 {
|
||||||
try!(dest.write_str(" "));
|
try!(dest.write_str(" "));
|
||||||
try!(self.0.to_css(dest));
|
try!(second.to_css(dest));
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue