Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cssparser #15766

Merged
merged 2 commits into from
Feb 28, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 51 additions & 49 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion components/canvas/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ path = "lib.rs"
[dependencies]
azure = {git = "https://github.com/servo/rust-azure"}
canvas_traits = {path = "../canvas_traits"}
cssparser = {version = "0.11", features = ["heapsize", "serde"]}
cssparser = "0.12"
euclid = "0.11"
gleam = "0.2.8"
ipc-channel = "0.7"
Expand Down
2 changes: 1 addition & 1 deletion components/canvas_traits/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ name = "canvas_traits"
path = "lib.rs"

[dependencies]
cssparser = {version = "0.11", features = ["heapsize", "serde"]}
cssparser = "0.12"
euclid = "0.11"
heapsize = "0.3.0"
heapsize_derive = "0.1"
Expand Down
2 changes: 1 addition & 1 deletion components/layout/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ app_units = "0.4"
atomic_refcell = "0.1"
bitflags = "0.7"
canvas_traits = {path = "../canvas_traits"}
cssparser = {version = "0.11", features = ["heapsize", "serde"]}
cssparser = "0.12"
euclid = "0.11"
fnv = "1.0"
gfx = {path = "../gfx"}
Expand Down
2 changes: 1 addition & 1 deletion components/msg/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ path = "lib.rs"

[dependencies]
bitflags = "0.7"
cssparser = {version = "0.11", features = ["heapsize", "serde"]}
cssparser = "0.12"
heapsize = "0.3.0"
heapsize_derive = "0.1"
serde = "0.9"
Expand Down
3 changes: 1 addition & 2 deletions components/script/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ byteorder = "1.0"
canvas_traits = {path = "../canvas_traits"}
caseless = "0.1.0"
cookie = "0.2.5"
cssparser = {version = "0.11", features = ["heapsize", "serde"]}
cssparser-macros = "0.1.0"
cssparser = "0.12"
deny_public_fields = {path = "../deny_public_fields"}
devtools_traits = {path = "../devtools_traits"}
dom_struct = {path = "../dom_struct"}
Expand Down
1 change: 0 additions & 1 deletion components/script/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ extern crate caseless;
extern crate cookie as cookie_rs;
extern crate core;
#[macro_use] extern crate cssparser;
#[macro_use] extern crate cssparser_macros;
#[macro_use] extern crate deny_public_fields;
extern crate devtools_traits;
extern crate dom_struct;
Expand Down
2 changes: 1 addition & 1 deletion components/script_layout_interface/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ path = "lib.rs"
app_units = "0.4"
atomic_refcell = "0.1"
canvas_traits = {path = "../canvas_traits"}
cssparser = {version = "0.11", features = ["heapsize", "serde"]}
cssparser = "0.12"
euclid = "0.11"
gfx_traits = {path = "../gfx_traits"}
heapsize = "0.3.0"
Expand Down
3 changes: 1 addition & 2 deletions components/selectors/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,5 @@ path = "lib.rs"
[dependencies]
bitflags = "0.7"
matches = "0.1"
cssparser = "0.11"
cssparser-macros = "0.1.0"
cssparser = "0.12"
fnv = "1.0"
1 change: 0 additions & 1 deletion components/selectors/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#[macro_use] extern crate bitflags;
#[macro_use] extern crate cssparser;
#[macro_use] extern crate cssparser_macros;
#[macro_use] extern crate matches;
extern crate fnv;

Expand Down
4 changes: 1 addition & 3 deletions components/style/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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" }
Expand Down
2 changes: 0 additions & 2 deletions components/style/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions components/style/properties/properties.mako.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(()),
Expand Down
3 changes: 1 addition & 2 deletions components/style_traits/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ servo = ["heapsize", "heapsize_derive", "serde", "serde_derive",

[dependencies]
app_units = "0.4"
cssparser = "0.11"
cssparser-macros = "0.1.0"
cssparser = "0.12"
euclid = "0.11"
heapsize = {version = "0.3.0", optional = true}
heapsize_derive = {version = "0.1", optional = true}
Expand Down
1 change: 0 additions & 1 deletion components/style_traits/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

extern crate app_units;
#[macro_use] extern crate cssparser;
#[macro_use] extern crate cssparser_macros;
extern crate euclid;
#[cfg(feature = "servo")] extern crate heapsize;
#[cfg(feature = "servo")] #[macro_use] extern crate heapsize_derive;
Expand Down
2 changes: 1 addition & 1 deletion ports/geckolib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ bindgen = ["style/use_bindgen"]
[dependencies]
app_units = "0.4"
atomic_refcell = "0.1"
cssparser = "0.11"
cssparser = "0.12"
env_logger = {version = "0.4", default-features = false} # disable `regex` to reduce code size
euclid = "0.11"
lazy_static = "0.2"
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/style/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ testing = ["style/testing"]

[dependencies]
app_units = "0.4"
cssparser = {version = "0.11", features = ["heapsize"]}
cssparser = "0.12"
euclid = "0.11"
html5ever-atoms = "0.2"
matches = "0.1"
owning_ref = "0.2.2"
parking_lot = "0.3"
rayon = "0.6"
Expand Down
1 change: 0 additions & 1 deletion tests/unit/style/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ extern crate app_units;
extern crate cssparser;
extern crate euclid;
#[macro_use] extern crate html5ever_atoms;
#[macro_use] extern crate matches;
extern crate owning_ref;
extern crate parking_lot;
extern crate rayon;
Expand Down
1 change: 0 additions & 1 deletion tests/unit/style/str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

use std::borrow::Cow;
use style::str::{split_html_space_chars, str_join};

#[test]
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/stylo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ doctest = false
[dependencies]
app_units = "0.4"
atomic_refcell = "0.1"
cssparser = "0.11"
cssparser = "0.12"
env_logger = "0.4"
euclid = "0.11"
lazy_static = "0.2"
Expand Down