mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -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