aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlfontelement.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2017-09-07 18:45:48 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2017-09-07 18:46:53 +0200
commit558f5772a682c455607aa1e2f67801a904ce1154 (patch)
tree546721823c88c8b6ebf90c562dd6d784625f5bb8 /components/script/dom/htmlfontelement.rs
parent85167c8b7d2fb0e0e90283db750b601d789cd6ea (diff)
downloadservo-558f5772a682c455607aa1e2f67801a904ce1154.tar.gz
servo-558f5772a682c455607aa1e2f67801a904ce1154.zip
Rename VirtualMethods::attribute_is_mapped
This name doesn't convey what the method is about, it's now attribute_affects_presentational_hints.
Diffstat (limited to 'components/script/dom/htmlfontelement.rs')
-rw-r--r--components/script/dom/htmlfontelement.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/htmlfontelement.rs b/components/script/dom/htmlfontelement.rs
index 3cd0aceab53..b804d327326 100644
--- a/components/script/dom/htmlfontelement.rs
+++ b/components/script/dom/htmlfontelement.rs
@@ -71,13 +71,13 @@ impl VirtualMethods for HTMLFontElement {
Some(self.upcast::<HTMLElement>() as &VirtualMethods)
}
- fn attribute_is_mapped(&self, attr: &Attr) -> bool {
+ fn attribute_affects_presentational_hints(&self, attr: &Attr) -> bool {
if attr.local_name() == &local_name!("color") {
return true;
}
// FIXME: Should also return true for `size` and `face` changes!
- self.super_type().unwrap().attribute_is_mapped(attr)
+ self.super_type().unwrap().attribute_affects_presentational_hints(attr)
}
fn parse_plain_attribute(&self, name: &LocalName, value: DOMString) -> AttrValue {