mirror of
https://github.com/servo/servo.git
synced 2025-09-19 03:18:20 +01:00
Upgrade cssparser to 0.15
This commit is contained in:
parent
66c130d55a
commit
b83afdedc8
42 changed files with 234 additions and 217 deletions
|
@ -10,7 +10,7 @@ path = "lib.rs"
|
|||
doctest = false
|
||||
|
||||
[dependencies]
|
||||
cssparser = "0.15"
|
||||
cssparser = "0.16"
|
||||
gfx = {path = "../../../components/gfx"}
|
||||
ipc-channel = "0.8"
|
||||
style = {path = "../../../components/style"}
|
||||
|
|
|
@ -15,7 +15,7 @@ testing = ["style/testing"]
|
|||
[dependencies]
|
||||
byteorder = "1.0"
|
||||
app_units = "0.5"
|
||||
cssparser = "0.15"
|
||||
cssparser = "0.16"
|
||||
euclid = "0.15"
|
||||
html5ever = "0.18"
|
||||
parking_lot = "0.3"
|
||||
|
|
|
@ -87,13 +87,14 @@ macro_rules! assert_roundtrip_with_context {
|
|||
}, &mut input).unwrap();
|
||||
|
||||
let mut input = ::cssparser::ParserInput::new(&serialized);
|
||||
super::parse_input(|context, i| {
|
||||
let unwrapped = super::parse_input(|context, i| {
|
||||
let re_parsed = $fun(context, i)
|
||||
.expect(&format!("Failed to parse serialization {}", $input));
|
||||
let re_serialized = ToCss::to_css_string(&re_parsed);
|
||||
assert_eq!(serialized, re_serialized);
|
||||
Ok(())
|
||||
}, &mut input).unwrap()
|
||||
}, &mut input).unwrap();
|
||||
unwrapped
|
||||
}}
|
||||
}
|
||||
|
||||
|
|
|
@ -40,13 +40,14 @@ macro_rules! assert_roundtrip_with_context {
|
|||
}, $input).unwrap();
|
||||
|
||||
let mut input = ::cssparser::ParserInput::new(&serialized);
|
||||
parse_input(|context, i| {
|
||||
let unwrapped = parse_input(|context, i| {
|
||||
let re_parsed = $fun(context, i)
|
||||
.expect(&format!("Failed to parse serialization {}", $input));
|
||||
let re_serialized = ToCss::to_css_string(&re_parsed);
|
||||
assert_eq!(serialized, re_serialized);
|
||||
Ok(())
|
||||
}, &mut input).unwrap()
|
||||
}, &mut input).unwrap();
|
||||
unwrapped
|
||||
}}
|
||||
}
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ testing = ["style/testing"]
|
|||
|
||||
[dependencies]
|
||||
atomic_refcell = "0.1"
|
||||
cssparser = "0.15"
|
||||
cssparser = "0.16"
|
||||
env_logger = "0.4"
|
||||
euclid = "0.15"
|
||||
geckoservo = {path = "../../../ports/geckolib"}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue