mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Untry style
This commit is contained in:
parent
4c5f7bfaa3
commit
a5bb55790f
45 changed files with 518 additions and 527 deletions
|
@ -30,12 +30,12 @@ pub struct DocumentRule {
|
|||
impl ToCssWithGuard for DocumentRule {
|
||||
fn to_css<W>(&self, guard: &SharedRwLockReadGuard, dest: &mut W) -> fmt::Result
|
||||
where W: fmt::Write {
|
||||
try!(dest.write_str("@-moz-document "));
|
||||
try!(self.condition.to_css(dest));
|
||||
try!(dest.write_str(" {"));
|
||||
dest.write_str("@-moz-document ")?;
|
||||
self.condition.to_css(dest)?;
|
||||
dest.write_str(" {")?;
|
||||
for rule in self.rules.read_with(guard).0.iter() {
|
||||
try!(dest.write_str(" "));
|
||||
try!(rule.to_css(guard, dest));
|
||||
dest.write_str(" ")?;
|
||||
rule.to_css(guard, dest)?;
|
||||
}
|
||||
dest.write_str(" }")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue