mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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
|
@ -2303,6 +2303,16 @@ impl VirtualMethods for Element {
|
|||
Some(self.upcast::<Node>() as &VirtualMethods)
|
||||
}
|
||||
|
||||
fn attribute_is_mapped(&self, attr: &Attr) -> bool {
|
||||
// FIXME: This should be more fine-grained, not all elements care about these.
|
||||
if attr.local_name() == &local_name!("width") ||
|
||||
attr.local_name() == &local_name!("height") {
|
||||
return true;
|
||||
}
|
||||
|
||||
self.super_type().unwrap().attribute_is_mapped(attr)
|
||||
}
|
||||
|
||||
fn attribute_mutated(&self, attr: &Attr, mutation: AttributeMutation) {
|
||||
self.super_type().unwrap().attribute_mutated(attr, mutation);
|
||||
let node = self.upcast::<Node>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue