diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2015-10-24 02:58:31 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2015-12-13 21:14:31 +0100 |
commit | 8f01790f06212e97c80ce85f486d0a2232d608bc (patch) | |
tree | bc5b53b7e51edb89d7500f45bc6f65363e858573 /components/script/dom/virtualmethods.rs | |
parent | b63ca94c7f8f67de548c3319b50219c3262076f6 (diff) | |
download | servo-8f01790f06212e97c80ce85f486d0a2232d608bc.tar.gz servo-8f01790f06212e97c80ce85f486d0a2232d608bc.zip |
Introduce UnbindContext
This holds the context that describes the original node that was removed from a tree
when unbinding from a tree.
Diffstat (limited to 'components/script/dom/virtualmethods.rs')
-rw-r--r-- | components/script/dom/virtualmethods.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/virtualmethods.rs b/components/script/dom/virtualmethods.rs index d2a436606d7..3540fbddf0f 100644 --- a/components/script/dom/virtualmethods.rs +++ b/components/script/dom/virtualmethods.rs @@ -42,7 +42,7 @@ use dom::htmltablesectionelement::HTMLTableSectionElement; use dom::htmltemplateelement::HTMLTemplateElement; use dom::htmltextareaelement::HTMLTextAreaElement; use dom::htmltitleelement::HTMLTitleElement; -use dom::node::{ChildrenMutation, CloneChildrenFlag, Node}; +use dom::node::{ChildrenMutation, CloneChildrenFlag, Node, UnbindContext}; use string_cache::Atom; use util::str::DOMString; @@ -82,9 +82,9 @@ pub trait VirtualMethods { /// Called when a Node is removed from a tree, where 'tree_in_doc' /// indicates whether the tree is part of a Document. - fn unbind_from_tree(&self, tree_in_doc: bool) { + fn unbind_from_tree(&self, context: &UnbindContext) { if let Some(ref s) = self.super_type() { - s.unbind_from_tree(tree_in_doc); + s.unbind_from_tree(context); } } |