mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Fix tidy.
This commit is contained in:
parent
1face496a2
commit
d9d9fed7d5
3 changed files with 4 additions and 5 deletions
|
@ -6,9 +6,9 @@
|
|||
//!
|
||||
//! https://drafts.csswg.org/mediaqueries/#typedef-media-query-list
|
||||
|
||||
use context::QuirksMode;
|
||||
use cssparser::{Delimiter, Parser};
|
||||
use cssparser::{ParserInput, Token};
|
||||
use context::QuirksMode;
|
||||
use error_reporting::{ContextualParseError, ParseErrorReporter};
|
||||
use parser::{ParserContext, ParserErrorContext};
|
||||
use super::{Device, MediaQuery, Qualifier};
|
||||
|
|
|
@ -13,12 +13,11 @@ use selectors::parser::SelectorParseErrorKind;
|
|||
use std::fmt::{self, Write};
|
||||
use str::string_as_ascii_lowercase;
|
||||
use style_traits::{CssWriter, ParseError, StyleParseErrorKind, ToCss};
|
||||
use super::Expression;
|
||||
use values::CustomIdent;
|
||||
|
||||
use super::Expression;
|
||||
|
||||
/// <https://drafts.csswg.org/mediaqueries/#mq-prefix>
|
||||
#[derive(Clone, Copy, Debug, Eq, MallocSizeOf, PartialEq, Parse, ToCss)]
|
||||
#[derive(Clone, Copy, Debug, Eq, MallocSizeOf, Parse, PartialEq, ToCss)]
|
||||
pub enum Qualifier {
|
||||
/// Hide a media query from legacy UAs:
|
||||
/// <https://drafts.csswg.org/mediaqueries/#mq-only>
|
||||
|
|
|
@ -12,7 +12,7 @@ use style_traits::{ParseError, StyleParseErrorKind};
|
|||
use values::CSSFloat;
|
||||
|
||||
/// A specified resolution.
|
||||
#[derive(Clone, Debug, PartialEq, MallocSizeOf, ToCss)]
|
||||
#[derive(Clone, Debug, MallocSizeOf, PartialEq, ToCss)]
|
||||
pub enum Resolution {
|
||||
/// Dots per inch.
|
||||
#[css(dimension)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue