diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2017-09-26 01:21:01 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2017-09-26 09:49:02 +0200 |
commit | c52fd0a78041ec22db1c4b391556368cd8b87b02 (patch) | |
tree | 80e283b6af26f0fd7bd3d620d45be6a52d4854b4 /components/script/dom/mutationrecord.rs | |
parent | d29335040d78a19f25830061484cf70dc03a9c21 (diff) | |
download | servo-c52fd0a78041ec22db1c4b391556368cd8b87b02.tar.gz servo-c52fd0a78041ec22db1c4b391556368cd8b87b02.zip |
Rename MutNullableJS<T> to MutNullableDom<T>
Diffstat (limited to 'components/script/dom/mutationrecord.rs')
-rw-r--r-- | components/script/dom/mutationrecord.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/components/script/dom/mutationrecord.rs b/components/script/dom/mutationrecord.rs index a5d21663b99..bbb42dd1f28 100644 --- a/components/script/dom/mutationrecord.rs +++ b/components/script/dom/mutationrecord.rs @@ -5,7 +5,7 @@ use dom::bindings::codegen::Bindings::MutationRecordBinding::MutationRecordBinding; use dom::bindings::codegen::Bindings::MutationRecordBinding::MutationRecordBinding::MutationRecordMethods; use dom::bindings::reflector::{Reflector, reflect_dom_object}; -use dom::bindings::root::{Dom, MutNullableJS, Root}; +use dom::bindings::root::{Dom, MutNullableDom, Root}; use dom::bindings::str::DOMString; use dom::node::{Node, window_from_node}; use dom::nodelist::NodeList; @@ -20,8 +20,8 @@ pub struct MutationRecord { attribute_name: Option<DOMString>, attribute_namespace: Option<DOMString>, old_value: Option<DOMString>, - added_nodes: MutNullableJS<NodeList>, - removed_nodes: MutNullableJS<NodeList>, + added_nodes: MutNullableDom<NodeList>, + removed_nodes: MutNullableDom<NodeList>, next_sibling: Option<Dom<Node>>, prev_sibling: Option<Dom<Node>>, } @@ -77,8 +77,8 @@ impl MutationRecord { attribute_name: attribute_name, attribute_namespace: attribute_namespace, old_value: old_value, - added_nodes: MutNullableJS::new(added_nodes), - removed_nodes: MutNullableJS::new(removed_nodes), + added_nodes: MutNullableDom::new(added_nodes), + removed_nodes: MutNullableDom::new(removed_nodes), next_sibling: next_sibling.map(Dom::from_ref), prev_sibling: prev_sibling.map(Dom::from_ref), } |