diff options
author | Ms2ger <ms2ger@gmail.com> | 2014-11-05 13:43:29 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2014-11-05 16:19:11 +0100 |
commit | 214c356ecd20437a78b10cd4d04496c371037b71 (patch) | |
tree | 7a0899a338525f3ae8fc50e02ca18fdbfb07eb7f /components/script/dom/virtualmethods.rs | |
parent | f7407ee43d314219c63615f5e81bb8eeb1781807 (diff) | |
download | servo-214c356ecd20437a78b10cd4d04496c371037b71.tar.gz servo-214c356ecd20437a78b10cd4d04496c371037b71.zip |
Pass an Atom to VirtualMethods::parse_plain_attribute.
Diffstat (limited to 'components/script/dom/virtualmethods.rs')
-rw-r--r-- | components/script/dom/virtualmethods.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/script/dom/virtualmethods.rs b/components/script/dom/virtualmethods.rs index 0b23ffc37ea..03c4b27c737 100644 --- a/components/script/dom/virtualmethods.rs +++ b/components/script/dom/virtualmethods.rs @@ -68,6 +68,8 @@ use dom::node::{Node, NodeHelpers, ElementNodeTypeId, CloneChildrenFlag}; use servo_util::str::DOMString; +use string_cache::Atom; + /// Trait to allow DOM nodes to opt-in to overriding (or adding to) common /// behaviours. Replicates the effect of C++ virtual methods. pub trait VirtualMethods { @@ -95,7 +97,7 @@ pub trait VirtualMethods { /// Returns the right AttrValue variant for the attribute with name `name` /// on this element. - fn parse_plain_attribute(&self, name: &str, value: DOMString) -> AttrValue { + fn parse_plain_attribute(&self, name: &Atom, value: DOMString) -> AttrValue { match self.super_type() { Some(ref s) => s.parse_plain_attribute(name, value), _ => StringAttrValue(value), |