Skip to content

Commit

Permalink
Update cssparser to 0.18
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Jul 24, 2017
1 parent 30d6d60 commit eb98ae6
Show file tree
Hide file tree
Showing 64 changed files with 542 additions and 513 deletions.
26 changes: 13 additions & 13 deletions 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 components/canvas/Cargo.toml
Expand Up @@ -12,7 +12,7 @@ path = "lib.rs"
[dependencies]
azure = {git = "https://github.com/servo/rust-azure"}
canvas_traits = {path = "../canvas_traits"}
cssparser = "0.17.0"
cssparser = "0.18"
euclid = "0.15"
gleam = "0.4"
ipc-channel = "0.8"
Expand Down
2 changes: 1 addition & 1 deletion components/canvas_traits/Cargo.toml
Expand Up @@ -10,7 +10,7 @@ name = "canvas_traits"
path = "lib.rs"

[dependencies]
cssparser = "0.17.0"
cssparser = "0.18"
euclid = "0.15"
heapsize = "0.4"
heapsize_derive = "0.1"
Expand Down
2 changes: 1 addition & 1 deletion components/script/Cargo.toml
Expand Up @@ -34,7 +34,7 @@ byteorder = "1.0"
canvas_traits = {path = "../canvas_traits"}
caseless = "0.1.0"
cookie = "0.6"
cssparser = "0.17.0"
cssparser = "0.18"
deny_public_fields = {path = "../deny_public_fields"}
devtools_traits = {path = "../devtools_traits"}
dom_struct = {path = "../dom_struct"}
Expand Down
6 changes: 3 additions & 3 deletions components/script/dom/bindings/str.rs
Expand Up @@ -4,7 +4,7 @@

//! The `ByteString` struct.

use cssparser::CompactCowStr;
use cssparser::CowRcStr;
use html5ever::{LocalName, Namespace};
use servo_atoms::Atom;
use std::ascii::AsciiExt;
Expand Down Expand Up @@ -298,8 +298,8 @@ impl<'a> Into<Cow<'a, str>> for DOMString {
}
}

impl<'a> Into<CompactCowStr<'a>> for DOMString {
fn into(self) -> CompactCowStr<'a> {
impl<'a> Into<CowRcStr<'a>> for DOMString {
fn into(self) -> CowRcStr<'a> {
self.0.into()
}
}
Expand Down
2 changes: 1 addition & 1 deletion components/script/dom/csskeyframesrule.rs
Expand Up @@ -121,7 +121,7 @@ impl CSSKeyframesRuleMethods for CSSKeyframesRule {
// Spec deviation: https://github.com/w3c/csswg-drafts/issues/801
// Setting this property to a CSS-wide keyword or `none` does not throw,
// it stores a value that serializes as a quoted string.
let name = KeyframesName::from_ident(value.into());
let name = KeyframesName::from_ident(&value);
let mut guard = self.cssrule.shared_lock().write();
self.keyframesrule.write_with(&mut guard).name = name;
Ok(())
Expand Down
2 changes: 1 addition & 1 deletion components/script_layout_interface/Cargo.toml
Expand Up @@ -13,7 +13,7 @@ path = "lib.rs"
app_units = "0.5"
atomic_refcell = "0.1"
canvas_traits = {path = "../canvas_traits"}
cssparser = "0.17.0"
cssparser = "0.18"
euclid = "0.15"
gfx_traits = {path = "../gfx_traits"}
heapsize = "0.4"
Expand Down
2 changes: 1 addition & 1 deletion components/selectors/Cargo.toml
Expand Up @@ -25,7 +25,7 @@ unstable = []
[dependencies]
bitflags = "0.7"
matches = "0.1"
cssparser = "0.17.0"
cssparser = "0.18"
log = "0.3"
fnv = "1.0"
phf = "0.7.18"
Expand Down

0 comments on commit eb98ae6

Please sign in to comment.