diff options
author | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2019-03-05 18:01:59 +0100 |
---|---|---|
committer | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2019-04-26 11:31:18 +0200 |
commit | 813b242419d41505641b433c3b38b0d0542c559d (patch) | |
tree | b0620df09b19e2a271e9d09994520349ba1e9a53 /components/script/dom/virtualmethods.rs | |
parent | 740aae06bad9e5ff864c914117cab1e74a727614 (diff) | |
download | servo-813b242419d41505641b433c3b38b0d0542c559d.tar.gz servo-813b242419d41505641b433c3b38b0d0542c559d.zip |
Introduce BindContext with in_doc and connected flags
Fix some is_in_doc -> is_connected mistakes
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 2bb90e93b53..f3b8b633232 100644 --- a/components/script/dom/virtualmethods.rs +++ b/components/script/dom/virtualmethods.rs @@ -51,7 +51,7 @@ use crate::dom::htmltemplateelement::HTMLTemplateElement; use crate::dom::htmltextareaelement::HTMLTextAreaElement; use crate::dom::htmltitleelement::HTMLTitleElement; use crate::dom::htmlvideoelement::HTMLVideoElement; -use crate::dom::node::{ChildrenMutation, CloneChildrenFlag, Node, UnbindContext}; +use crate::dom::node::{BindContext, ChildrenMutation, CloneChildrenFlag, Node, UnbindContext}; use crate::dom::svgsvgelement::SVGSVGElement; use html5ever::LocalName; use style::attr::AttrValue; @@ -92,9 +92,9 @@ pub trait VirtualMethods { /// Called when a Node is appended to a tree, where 'tree_connected' indicates /// whether the tree is part of a Document. - fn bind_to_tree(&self, tree_connected: bool) { + fn bind_to_tree(&self, context: &BindContext) { if let Some(ref s) = self.super_type() { - s.bind_to_tree(tree_connected); + s.bind_to_tree(context); } } |