mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
style: Appease tidy.
This commit is contained in:
parent
719209316c
commit
8e5c853fca
2 changed files with 4 additions and 5 deletions
|
@ -71,7 +71,7 @@ bitflags! {
|
|||
const IN_OPTIONAL_STATE = 1 << 22;
|
||||
/// <https://html.spec.whatwg.org/multipage/#selector-read-write>
|
||||
const IN_READ_WRITE_STATE = 1 << 22;
|
||||
/// <https://html.spec.whatwg.org/multipage/semantics-other.html#selector-defined>
|
||||
/// <https://html.spec.whatwg.org/multipage/#selector-defined>
|
||||
const IN_DEFINED_STATE = 1 << 23;
|
||||
/// <https://html.spec.whatwg.org/multipage/#selector-visited>
|
||||
const IN_VISITED_STATE = 1 << 24;
|
||||
|
|
|
@ -6,17 +6,16 @@
|
|||
//!
|
||||
//! https://drafts.csswg.org/mediaqueries-4/#typedef-media-condition
|
||||
|
||||
use cssparser::{Parser, Token};
|
||||
use context::QuirksMode;
|
||||
use cssparser::{Parser, Token};
|
||||
use parser::ParserContext;
|
||||
use std::fmt::{self, Write};
|
||||
use style_traits::{CssWriter, ParseError, StyleParseErrorKind, ToCss};
|
||||
|
||||
use super::{Device, MediaFeatureExpression};
|
||||
|
||||
|
||||
/// A binary `and` or `or` operator.
|
||||
#[derive(Clone, Copy, Debug, Eq, MallocSizeOf, PartialEq, Parse, ToCss)]
|
||||
#[derive(Clone, Copy, Debug, Eq, MallocSizeOf, Parse, PartialEq, ToCss)]
|
||||
#[allow(missing_docs)]
|
||||
pub enum Operator {
|
||||
And,
|
||||
|
@ -24,7 +23,7 @@ pub enum Operator {
|
|||
}
|
||||
|
||||
/// Whether to allow an `or` condition or not during parsing.
|
||||
#[derive(Clone, Copy, Debug, Eq, MallocSizeOf, PartialEq, Parse, ToCss)]
|
||||
#[derive(Clone, Copy, Debug, Eq, MallocSizeOf, PartialEq, ToCss)]
|
||||
enum AllowOr {
|
||||
Yes,
|
||||
No,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue