mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Move LengthOrPercentageOrAuto to style::attr.
This commit is contained in:
parent
1bc94c132e
commit
06a1d04ca6
10 changed files with 17 additions and 21 deletions
|
@ -10,13 +10,20 @@ use std::ascii::AsciiExt;
|
|||
use std::str::FromStr;
|
||||
use string_cache::{Atom, Namespace};
|
||||
use url::Url;
|
||||
use util::str::{LengthOrPercentageOrAuto, HTML_SPACE_CHARACTERS};
|
||||
use util::str::{read_exponent, read_fraction, read_numbers, split_commas, split_html_space_chars};
|
||||
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.
|
||||
const UNSIGNED_LONG_MAX: u32 = 2147483647;
|
||||
|
||||
#[derive(Clone, Copy, Debug, HeapSizeOf, PartialEq)]
|
||||
pub enum LengthOrPercentageOrAuto {
|
||||
Auto,
|
||||
Percentage(f32),
|
||||
Length(Au),
|
||||
}
|
||||
|
||||
#[derive(PartialEq, Clone, HeapSizeOf)]
|
||||
pub enum AttrValue {
|
||||
String(String),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue