Handle dynamic font color change

This commit is contained in:
P. Albrecht 2017-09-07 11:24:34 +02:00
parent 54cd23adb8
commit 8161d1931d
7 changed files with 80 additions and 4 deletions

View file

@ -70,6 +70,15 @@ pub trait VirtualMethods {
}
}
/// Returns `true` if given attribute `attr` affects style of the
/// given element.
fn attribute_is_mapped(&self, attr: &Attr) -> bool {
match self.super_type() {
Some(s) => s.attribute_is_mapped(attr),
None => false
}
}
/// Returns the right AttrValue variant for the attribute with name `name`
/// on this element.
fn parse_plain_attribute(&self, name: &LocalName, value: DOMString) -> AttrValue {