mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Remove servo_url dependency for geckolib
It seems mod attr is not used for geckolib at all, and that is the only place where servo_url is still referenced for geckolib, so we can just remove it.
This commit is contained in:
parent
1b6c3e06bb
commit
3150a92651
3 changed files with 5 additions and 7 deletions
|
@ -19,7 +19,7 @@ use std::str::FromStr;
|
|||
use std::sync::Arc;
|
||||
use str::{HTML_SPACE_CHARACTERS, read_exponent, read_fraction};
|
||||
use str::{read_numbers, split_commas, split_html_space_chars};
|
||||
#[cfg(not(feature = "gecko"))] use str::str_join;
|
||||
use str::str_join;
|
||||
use values::specified::Length;
|
||||
|
||||
// Duplicated from script::dom::values.
|
||||
|
@ -166,7 +166,6 @@ impl AttrValue {
|
|||
AttrValue::TokenList(tokens, atoms)
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "gecko"))] // Gecko can't borrow atoms as UTF-8.
|
||||
pub fn from_atomic_tokens(atoms: Vec<Atom>) -> AttrValue {
|
||||
// TODO(ajeffrey): effecient conversion of Vec<Atom> to String
|
||||
let tokens = String::from(str_join(&atoms, "\x20"));
|
||||
|
@ -335,7 +334,6 @@ impl AttrValue {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "gecko"))] // Gecko can't borrow atoms as UTF-8.
|
||||
impl ::std::ops::Deref for AttrValue {
|
||||
type Target = str;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue