mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Remove extra definition of WHITESPACE under components/util/str.rs
This commit is contained in:
parent
bebc1dc859
commit
95bebb9945
3 changed files with 14 additions and 18 deletions
|
@ -15,7 +15,7 @@ use dom::node::Node;
|
|||
use dom::virtualmethods::VirtualMethods;
|
||||
use string_cache::Atom;
|
||||
use style::values::specified;
|
||||
use util::str::{DOMString, WHITESPACE, read_numbers};
|
||||
use util::str::{DOMString, HTML_SPACE_CHARACTERS, read_numbers};
|
||||
|
||||
#[dom_struct]
|
||||
pub struct HTMLFontElement {
|
||||
|
@ -124,7 +124,7 @@ pub fn parse_legacy_font_size(mut input: &str) -> Option<&'static str> {
|
|||
// Steps 1 & 2 are not relevant
|
||||
|
||||
// Step 3
|
||||
input = input.trim_matches(WHITESPACE);
|
||||
input = input.trim_matches(HTML_SPACE_CHARACTERS);
|
||||
|
||||
enum ParseMode {
|
||||
RelativePlus,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue