mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Remove HTMLTableCellElement fields with parsed attribute values.
This commit is contained in:
parent
b4d234107e
commit
1940c3d7d6
3 changed files with 17 additions and 23 deletions
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue