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/radionodelist.rs | |
parent | 43c558fa597901f30f6994e2d99858f2954fdce2 (diff) | |
download | servo-f29e22f131291ed1bcd581cb9be6807c66c1534e.tar.gz servo-f29e22f131291ed1bcd581cb9be6807c66c1534e.zip |
Names should now be consistently atoms
Diffstat (limited to 'components/script/dom/radionodelist.rs')
-rw-r--r-- | components/script/dom/radionodelist.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/components/script/dom/radionodelist.rs b/components/script/dom/radionodelist.rs index 6882aefff35..56069375b27 100644 --- a/components/script/dom/radionodelist.rs +++ b/components/script/dom/radionodelist.rs @@ -16,6 +16,7 @@ use crate::dom::node::Node; use crate::dom::nodelist::{NodeList, NodeListType, RadioList, RadioListMode}; use crate::dom::window::Window; use dom_struct::dom_struct; +use servo_atoms::Atom; #[dom_struct] pub struct RadioNodeList { @@ -42,14 +43,14 @@ impl RadioNodeList { pub fn new_controls_except_image_inputs( window: &Window, form: &HTMLFormElement, - name: DOMString, + name: &Atom, ) -> DomRoot<RadioNodeList> { RadioNodeList::new( window, NodeListType::Radio(RadioList::new( form, RadioListMode::ControlsExceptImageInputs, - name, + name.clone(), )), ) } @@ -57,11 +58,11 @@ impl RadioNodeList { pub fn new_images( window: &Window, form: &HTMLFormElement, - name: DOMString, + name: &Atom, ) -> DomRoot<RadioNodeList> { RadioNodeList::new( window, - NodeListType::Radio(RadioList::new(form, RadioListMode::Images, name)), + NodeListType::Radio(RadioList::new(form, RadioListMode::Images, name.clone())), ) } |