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/nodelist.rs | |
parent | 43c558fa597901f30f6994e2d99858f2954fdce2 (diff) | |
download | servo-f29e22f131291ed1bcd581cb9be6807c66c1534e.tar.gz servo-f29e22f131291ed1bcd581cb9be6807c66c1534e.zip |
Names should now be consistently atoms
Diffstat (limited to 'components/script/dom/nodelist.rs')
-rw-r--r-- | components/script/dom/nodelist.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/nodelist.rs b/components/script/dom/nodelist.rs index 1fdcef4b340..8c4f6d39358 100644 --- a/components/script/dom/nodelist.rs +++ b/components/script/dom/nodelist.rs @@ -7,12 +7,12 @@ use crate::dom::bindings::codegen::Bindings::NodeListBinding; use crate::dom::bindings::codegen::Bindings::NodeListBinding::NodeListMethods; use crate::dom::bindings::reflector::{reflect_dom_object, Reflector}; use crate::dom::bindings::root::{Dom, DomRoot, MutNullableDom}; -use crate::dom::bindings::str::DOMString; use crate::dom::htmlelement::HTMLElement; use crate::dom::htmlformelement::HTMLFormElement; use crate::dom::node::{ChildrenMutation, Node}; use crate::dom::window::Window; use dom_struct::dom_struct; +use servo_atoms::Atom; use std::cell::Cell; #[derive(JSTraceable, MallocSizeOf)] @@ -381,11 +381,11 @@ pub enum RadioListMode { pub struct RadioList { form: Dom<HTMLFormElement>, mode: RadioListMode, - name: DOMString, + name: Atom, } impl RadioList { - pub fn new(form: &HTMLFormElement, mode: RadioListMode, name: DOMString) -> RadioList { + pub fn new(form: &HTMLFormElement, mode: RadioListMode, name: Atom) -> RadioList { RadioList { form: Dom::from_ref(form), mode: mode, |