mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +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
|
//! https://drafts.csswg.org/mediaqueries/#typedef-media-query-list
|
||||||
|
|
||||||
|
use context::QuirksMode;
|
||||||
use cssparser::{Delimiter, Parser};
|
use cssparser::{Delimiter, Parser};
|
||||||
use cssparser::{ParserInput, Token};
|
use cssparser::{ParserInput, Token};
|
||||||
use context::QuirksMode;
|
|
||||||
use error_reporting::{ContextualParseError, ParseErrorReporter};
|
use error_reporting::{ContextualParseError, ParseErrorReporter};
|
||||||
use parser::{ParserContext, ParserErrorContext};
|
use parser::{ParserContext, ParserErrorContext};
|
||||||
use super::{Device, MediaQuery, Qualifier};
|
use super::{Device, MediaQuery, Qualifier};
|
||||||
|
|
|
@ -13,12 +13,11 @@ use selectors::parser::SelectorParseErrorKind;
|
||||||
use std::fmt::{self, Write};
|
use std::fmt::{self, Write};
|
||||||
use str::string_as_ascii_lowercase;
|
use str::string_as_ascii_lowercase;
|
||||||
use style_traits::{CssWriter, ParseError, StyleParseErrorKind, ToCss};
|
use style_traits::{CssWriter, ParseError, StyleParseErrorKind, ToCss};
|
||||||
|
use super::Expression;
|
||||||
use values::CustomIdent;
|
use values::CustomIdent;
|
||||||
|
|
||||||
use super::Expression;
|
|
||||||
|
|
||||||
/// <https://drafts.csswg.org/mediaqueries/#mq-prefix>
|
/// <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 {
|
pub enum Qualifier {
|
||||||
/// Hide a media query from legacy UAs:
|
/// Hide a media query from legacy UAs:
|
||||||
/// <https://drafts.csswg.org/mediaqueries/#mq-only>
|
/// <https://drafts.csswg.org/mediaqueries/#mq-only>
|
||||||
|
|
|
@ -12,7 +12,7 @@ use style_traits::{ParseError, StyleParseErrorKind};
|
||||||
use values::CSSFloat;
|
use values::CSSFloat;
|
||||||
|
|
||||||
/// A specified resolution.
|
/// A specified resolution.
|
||||||
#[derive(Clone, Debug, PartialEq, MallocSizeOf, ToCss)]
|
#[derive(Clone, Debug, MallocSizeOf, PartialEq, ToCss)]
|
||||||
pub enum Resolution {
|
pub enum Resolution {
|
||||||
/// Dots per inch.
|
/// Dots per inch.
|
||||||
#[css(dimension)]
|
#[css(dimension)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue