mirror of
https://github.com/servo/servo.git
synced 2025-08-10 07:55:33 +01:00
Avoid the generic writer parameter for PropertyDeclaration serialization.
MozReview-Commit-ID: JR3IcL1NRHO
This commit is contained in:
parent
f5dd50dcfd
commit
5526947500
21 changed files with 227 additions and 108 deletions
|
@ -17,8 +17,9 @@ use selectors::parser::SelectorParseErrorKind;
|
|||
use shared_lock::{SharedRwLockReadGuard, ToCssWithGuard};
|
||||
#[allow(unused_imports)] use std::ascii::AsciiExt;
|
||||
use std::borrow::Cow;
|
||||
use std::fmt;
|
||||
use std::fmt::{self, Write};
|
||||
use std::ops::Range;
|
||||
use str::CssStringWriter;
|
||||
use style_traits::{Comma, OneOrMoreSeparated, ParseError, StyleParseErrorKind, ToCss};
|
||||
use values::CustomIdent;
|
||||
|
||||
|
@ -228,8 +229,7 @@ macro_rules! counter_style_descriptors {
|
|||
}
|
||||
|
||||
impl ToCssWithGuard for CounterStyleRuleData {
|
||||
fn to_css<W>(&self, _guard: &SharedRwLockReadGuard, dest: &mut W) -> fmt::Result
|
||||
where W: fmt::Write {
|
||||
fn to_css(&self, _guard: &SharedRwLockReadGuard, dest: &mut CssStringWriter) -> fmt::Result {
|
||||
dest.write_str("@counter-style ")?;
|
||||
self.name.to_css(dest)?;
|
||||
dest.write_str(" {\n")?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue