Remove HTMLTableCellElement fields with parsed attribute values.

This commit is contained in:
Eli Friedman 2015-10-16 13:25:21 -07:00
parent b4d234107e
commit 1940c3d7d6
3 changed files with 17 additions and 23 deletions

View file

@ -142,10 +142,7 @@ impl VirtualMethods for HTMLBodyElement {
fn parse_plain_attribute(&self, name: &Atom, value: DOMString) -> AttrValue {
match name {
&atom!("text") => {
let parsed = str::parse_legacy_color(&value).ok();
AttrValue::Color(value, parsed)
},
&atom!("text") => AttrValue::from_legacy_color(value),
_ => self.super_type().unwrap().parse_plain_attribute(name, value),
}
}