mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Implement MediaList interface
This commit is contained in:
parent
5abbc9f696
commit
c052835281
10 changed files with 207 additions and 32 deletions
|
@ -85,7 +85,7 @@ pub enum Qualifier {
|
|||
Not,
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
#[cfg_attr(feature = "servo", derive(HeapSizeOf))]
|
||||
pub struct MediaQuery {
|
||||
pub qualifier: Option<Qualifier>,
|
||||
|
@ -206,7 +206,7 @@ impl Expression {
|
|||
}
|
||||
|
||||
impl MediaQuery {
|
||||
fn parse(input: &mut Parser) -> Result<MediaQuery, ()> {
|
||||
pub fn parse(input: &mut Parser) -> Result<MediaQuery, ()> {
|
||||
let mut expressions = vec![];
|
||||
|
||||
let qualifier = if input.try(|input| input.expect_ident_matching("only")).is_ok() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue