mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Handle dynamic font color change
This commit is contained in:
parent
54cd23adb8
commit
8161d1931d
7 changed files with 80 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue