diff options
author | Patrick Shaughnessy <pshaughn@comcast.net> | 2020-01-21 11:06:31 -0500 |
---|---|---|
committer | Patrick Shaughnessy <pshaughn@comcast.net> | 2020-02-13 11:21:46 -0500 |
commit | f29e22f131291ed1bcd581cb9be6807c66c1534e (patch) | |
tree | cdc19a2442457a09caef9b661c97a3bb2d823364 /components/script/dom/htmlimageelement.rs | |
parent | 43c558fa597901f30f6994e2d99858f2954fdce2 (diff) | |
download | servo-f29e22f131291ed1bcd581cb9be6807c66c1534e.tar.gz servo-f29e22f131291ed1bcd581cb9be6807c66c1534e.zip |
Names should now be consistently atoms
Diffstat (limited to 'components/script/dom/htmlimageelement.rs')
-rw-r--r-- | components/script/dom/htmlimageelement.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script/dom/htmlimageelement.rs b/components/script/dom/htmlimageelement.rs index 1cfecef1728..a18eedebfb8 100644 --- a/components/script/dom/htmlimageelement.rs +++ b/components/script/dom/htmlimageelement.rs @@ -1313,8 +1313,8 @@ impl HTMLImageElement { .filter_map(DomRoot::downcast::<HTMLMapElement>) .find(|n| { n.upcast::<Element>() - .get_string_attribute(&local_name!("name")) == - last + .get_name() + .map_or(false, |n| *n == *last) }); useMapElements.map(|mapElem| mapElem.get_area_elements()) @@ -1649,7 +1649,6 @@ impl VirtualMethods for HTMLImageElement { fn parse_plain_attribute(&self, name: &LocalName, value: DOMString) -> AttrValue { match name { - &local_name!("name") => AttrValue::from_atomic(value.into()), &local_name!("width") | &local_name!("height") => { AttrValue::from_dimension(value.into()) }, |