mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Derive ToCss for MediaList
This uncovered the fancy snowflake `use fmt::Write` in the impl of ToCss for NonTSPseudoClass.
This commit is contained in:
parent
fb8b6fc0a5
commit
31036d6510
3 changed files with 3 additions and 39 deletions
|
@ -66,7 +66,7 @@ apply_non_ts_list!(pseudo_class_name);
|
|||
impl ToCss for NonTSPseudoClass {
|
||||
fn to_css<W>(&self, dest: &mut W) -> fmt::Result where W: fmt::Write {
|
||||
use cssparser::CssStringWriter;
|
||||
use fmt::Write;
|
||||
use std::fmt::Write;
|
||||
macro_rules! pseudo_class_serialize {
|
||||
(bare: [$(($css:expr, $name:ident, $gecko_type:tt, $state:tt, $flags:tt),)*],
|
||||
string: [$(($s_css:expr, $s_name:ident, $s_gecko_type:tt, $s_state:tt, $s_flags:tt),)*]) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue