mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Rename VirtualMethods::attribute_is_mapped
This name doesn't convey what the method is about, it's now attribute_affects_presentational_hints.
This commit is contained in:
parent
85167c8b7d
commit
558f5772a6
4 changed files with 7 additions and 7 deletions
|
@ -2303,14 +2303,14 @@ impl VirtualMethods for Element {
|
|||
Some(self.upcast::<Node>() as &VirtualMethods)
|
||||
}
|
||||
|
||||
fn attribute_is_mapped(&self, attr: &Attr) -> bool {
|
||||
fn attribute_affects_presentational_hints(&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)
|
||||
self.super_type().unwrap().attribute_affects_presentational_hints(attr)
|
||||
}
|
||||
|
||||
fn attribute_mutated(&self, attr: &Attr, mutation: AttributeMutation) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue