Skip to content

Commit

Permalink
servo: Merge #9380 - Update cssparser (from servo:cssparserup); r=Sim…
Browse files Browse the repository at this point in the history
…onSapin

servo/rust-cssparser#91

Source-Repo: https://github.com/servo/servo
Source-Revision: 1ba1fb0b7f46472e1f37f4e3f2e7dde025fa9f1f

UltraBlame original commit: 9dc742835b57cb0d99cf8d0966bedcaa3e9c28c4
  • Loading branch information
marco-c committed Oct 1, 2019
1 parent 9ffe27d commit ebfce9f
Show file tree
Hide file tree
Showing 21 changed files with 104 additions and 125 deletions.
2 changes: 1 addition & 1 deletion servo/components/canvas_traits/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ path = "../plugins"
path = "../util"

[dependencies]
cssparser = { version = "0.4", features = [ "serde-serialization" ] }
cssparser = { version = "0.5", features = [ "serde-serialization" ] }
euclid = {version = "0.4", features = ["plugins"]}
serde_macros = "0.6"

2 changes: 1 addition & 1 deletion servo/components/layout/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ git = "https://github.com/servo/ipc-channel"

[dependencies]
app_units = {version = "0.1", features = ["plugins"]}
cssparser = { version = "0.4", features = [ "serde-serialization" ] }
cssparser = { version = "0.5", features = [ "serde-serialization" ] }
log = "0.3"
fnv = "1.0"
bitflags = "0.3"
Expand Down
2 changes: 1 addition & 1 deletion servo/components/msg/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ git = "https://github.com/servo/ipc-channel"
path = "../plugins"

[dependencies]
cssparser = { version = "0.4", features = [ "serde-serialization" ] }
cssparser = { version = "0.5", features = [ "serde-serialization" ] }
bitflags = "0.3"
hyper = { version = "0.7", features = [ "serde-serialization" ] }
rustc-serialize = "0.3.4"
Expand Down
2 changes: 1 addition & 1 deletion servo/components/script/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ path = "../gfx_traits"

[dependencies]
app_units = {version = "0.1", features = ["plugins"]}
cssparser = { version = "0.4", features = [ "serde-serialization" ] }
cssparser = { version = "0.5", features = [ "serde-serialization" ] }
log = "0.3"
encoding = "0.2"
fnv = "1.0"
Expand Down
34 changes: 17 additions & 17 deletions servo/components/servo/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion servo/components/style/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ path = "../style_traits"

[dependencies]
app_units = {version = "0.1", features = ["plugins"]}
cssparser = { version = "0.4", features = [ "serde-serialization" ] }
cssparser = { version = "0.5", features = [ "serde-serialization" ] }
log = "0.3"
encoding = "0.2"
fnv = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion servo/components/style/font_face.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ impl<'a, 'b> DeclarationParser for FontFaceRuleParser<'a, 'b> {
Ok(FontFaceDescriptorDeclaration::Src(try!(input.parse_comma_separated(|input| {
parse_one_src(self.context, input)
}))))
}
},
_ => Err(())
}
}
Expand Down
2 changes: 2 additions & 0 deletions servo/components/style/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#![plugin(serde_macros)]
#![plugin(plugins)]

#![recursion_limit = "500"]

extern crate app_units;
#[macro_use]
extern crate bitflags;
Expand Down
4 changes: 2 additions & 2 deletions servo/components/style/media_queries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ impl Expression {
},
"max-width" => {
Ok(Expression::Width(Range::Max(try!(specified::Length::parse_non_negative(input)))))
}
},
_ => Err(())
}
})
Expand All @@ -157,7 +157,7 @@ impl MediaQuery {
media_type = match_ignore_ascii_case! { ident,
"screen" => MediaQueryType::MediaType(MediaType::Screen),
"print" => MediaQueryType::MediaType(MediaType::Print),
"all" => MediaQueryType::All
"all" => MediaQueryType::All,
_ => MediaQueryType::MediaType(MediaType::Unknown)
}
} else {
Expand Down
Loading

0 comments on commit ebfce9f

Please sign in to comment.