mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Move util::str to style
This commit is contained in:
parent
744b94346a
commit
8ecb5962f3
25 changed files with 23 additions and 28 deletions
|
@ -12,10 +12,10 @@ use euclid::num::Zero;
|
|||
use num_traits::ToPrimitive;
|
||||
use std::ascii::AsciiExt;
|
||||
use std::str::FromStr;
|
||||
use str::{HTML_SPACE_CHARACTERS, read_exponent, read_fraction};
|
||||
use str::{read_numbers, split_commas, split_html_space_chars, str_join};
|
||||
use string_cache::{Atom, Namespace};
|
||||
use url::Url;
|
||||
use util::str::{HTML_SPACE_CHARACTERS, read_exponent, read_fraction};
|
||||
use util::str::{read_numbers, split_commas, split_html_space_chars};
|
||||
use values::specified::Length;
|
||||
|
||||
// Duplicated from script::dom::values.
|
||||
|
@ -148,7 +148,6 @@ impl AttrValue {
|
|||
|
||||
#[cfg(not(feature = "gecko"))] // Gecko can't borrow atoms as UTF-8.
|
||||
pub fn from_atomic_tokens(atoms: Vec<Atom>) -> AttrValue {
|
||||
use util::str::str_join;
|
||||
// TODO(ajeffrey): effecient conversion of Vec<Atom> to String
|
||||
let tokens = String::from(str_join(&atoms, "\x20"));
|
||||
AttrValue::TokenList(tokens, atoms)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue