aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/legacy.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-04-28 14:26:03 +0200
committerMs2ger <ms2ger@gmail.com>2015-05-11 23:43:58 +0200
commit0c8e55bff1983e03979435ef7cb7053c18a031a3 (patch)
tree3919381940d50702a2e5586524c1dc3401240f15 /components/style/legacy.rs
parent83f4b077eb37733bf2be22e315f0e0569b284c62 (diff)
downloadservo-0c8e55bff1983e03979435ef7cb7053c18a031a3.tar.gz
servo-0c8e55bff1983e03979435ef7cb7053c18a031a3.zip
Move input size to the new infrastructure.
Diffstat (limited to 'components/style/legacy.rs')
-rw-r--r--components/style/legacy.rs21
1 files changed, 0 insertions, 21 deletions
diff --git a/components/style/legacy.rs b/components/style/legacy.rs
index 57343341e29..8c4ed130916 100644
--- a/components/style/legacy.rs
+++ b/components/style/legacy.rs
@@ -30,8 +30,6 @@ pub enum LengthAttribute {
/// Legacy presentational attributes that take an integer as defined in HTML5 § 2.4.4.2.
#[derive(Copy, Clone, PartialEq, Eq)]
pub enum IntegerAttribute {
- /// `<input size>`
- Size,
Cols,
Rows,
}
@@ -122,25 +120,6 @@ impl PresentationalHintSynthesis for Stylist {
matching_rules_list,
shareable);
}
- name if *name == atom!("input") => {
- // FIXME(pcwalton): More use of atoms, please!
- match element.get_attr(&ns!(""), &atom!("type")) {
- Some("text") | Some("password") => {
- match element.get_integer_attribute(IntegerAttribute::Size) {
- Some(value) if value != 0 => {
- let value = specified::Length::ServoCharacterWidth(
- specified::CharacterWidth(value));
- matching_rules_list.push(from_declaration(
- PropertyDeclaration::Width(SpecifiedValue(
- specified::LengthOrPercentageOrAuto::Length(value)))));
- *shareable = false
- }
- Some(_) | None => {}
- }
- }
- _ => {}
- };
- }
name if *name == atom!("textarea") => {
match element.get_integer_attribute(IntegerAttribute::Cols) {
Some(value) if value != 0 => {