mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10: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
|
@ -35,7 +35,7 @@ byteorder = "1.0"
|
|||
canvas_traits = {path = "../canvas_traits"}
|
||||
caseless = "0.1.0"
|
||||
cookie = "0.6"
|
||||
cssparser = "0.15"
|
||||
cssparser = "0.16"
|
||||
deny_public_fields = {path = "../deny_public_fields"}
|
||||
devtools_traits = {path = "../devtools_traits"}
|
||||
dom_struct = {path = "../dom_struct"}
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
//! The `ByteString` struct.
|
||||
|
||||
use cssparser::CompactCowStr;
|
||||
use html5ever::{LocalName, Namespace};
|
||||
use servo_atoms::Atom;
|
||||
use std::ascii::AsciiExt;
|
||||
|
@ -298,6 +299,12 @@ impl<'a> Into<Cow<'a, str>> for DOMString {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> Into<CompactCowStr<'a>> for DOMString {
|
||||
fn into(self) -> CompactCowStr<'a> {
|
||||
self.0.into()
|
||||
}
|
||||
}
|
||||
|
||||
impl Extend<char> for DOMString {
|
||||
fn extend<I>(&mut self, iterable: I) where I: IntoIterator<Item=char> {
|
||||
self.0.extend(iterable)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue