mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update cssparser for https://github.com/servo/rust-cssparser/pull/123
This commit is contained in:
parent
bcd4d166ac
commit
288ef97055
18 changed files with 66 additions and 73 deletions
|
@ -26,8 +26,7 @@ app_units = "0.4"
|
|||
atomic_refcell = "0.1"
|
||||
bitflags = "0.7"
|
||||
cfg-if = "0.1.0"
|
||||
cssparser = "0.11"
|
||||
cssparser-macros = "0.1.0"
|
||||
cssparser = "0.12"
|
||||
encoding = "0.2"
|
||||
euclid = "0.11"
|
||||
fnv = "1.0"
|
||||
|
@ -43,7 +42,6 @@ num-traits = "0.1.32"
|
|||
ordered-float = "0.4"
|
||||
owning_ref = "0.2.2"
|
||||
parking_lot = "0.3.3"
|
||||
phf = "0.7.20"
|
||||
pdqsort = "0.1.0"
|
||||
rayon = "0.6"
|
||||
selectors = { path = "../selectors" }
|
||||
|
|
|
@ -43,7 +43,6 @@ extern crate atomic_refcell;
|
|||
extern crate bitflags;
|
||||
#[cfg(feature = "gecko")] #[macro_use] #[no_link] extern crate cfg_if;
|
||||
#[macro_use] extern crate cssparser;
|
||||
#[macro_use] extern crate cssparser_macros;
|
||||
extern crate encoding;
|
||||
extern crate euclid;
|
||||
extern crate fnv;
|
||||
|
@ -65,7 +64,6 @@ extern crate ordered_float;
|
|||
extern crate owning_ref;
|
||||
extern crate parking_lot;
|
||||
extern crate pdqsort;
|
||||
extern crate phf;
|
||||
extern crate rayon;
|
||||
extern crate selectors;
|
||||
#[cfg(feature = "servo")] #[macro_use] extern crate serde_derive;
|
||||
|
|
|
@ -698,17 +698,17 @@ impl PropertyId {
|
|||
Shorthand(ShorthandId),
|
||||
}
|
||||
ascii_case_insensitive_phf_map! {
|
||||
StaticIds: Map<StaticId> = {
|
||||
static_id -> StaticId = {
|
||||
% for (kind, properties) in [("Longhand", data.longhands), ("Shorthand", data.shorthands)]:
|
||||
% for property in properties:
|
||||
% for name in [property.name] + property.alias:
|
||||
"${name}" => "StaticId::${kind}(${kind}Id::${property.camel_case})",
|
||||
"${name}" => StaticId::${kind}(${kind}Id::${property.camel_case}),
|
||||
% endfor
|
||||
% endfor
|
||||
% endfor
|
||||
}
|
||||
}
|
||||
match StaticIds::get(&property_name) {
|
||||
match static_id(&property_name) {
|
||||
Some(&StaticId::Longhand(id)) => Ok(PropertyId::Longhand(id)),
|
||||
Some(&StaticId::Shorthand(id)) => Ok(PropertyId::Shorthand(id)),
|
||||
None => Err(()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue