diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2015-12-26 04:08:15 +0530 |
---|---|---|
committer | bors-servo <lbergstrom+bors@mozilla.com> | 2015-12-26 04:08:15 +0530 |
commit | 89ab368258eb827b0dcc8d6e6deecd3ed3c1de71 (patch) | |
tree | cf25fa3290e5c6c9b60ddeef014c54c334a28201 /components/script/dom/virtualmethods.rs | |
parent | 7db6ce41d2a0748285d2a3c3f4141e8bd30ee8ef (diff) | |
parent | 3c768356159c19a4ce5f0a07684b6dee9b20f2e4 (diff) | |
download | servo-89ab368258eb827b0dcc8d6e6deecd3ed3c1de71.tar.gz servo-89ab368258eb827b0dcc8d6e6deecd3ed3c1de71.zip |
Auto merge of #8506 - nox:finish-ranges, r=dzbarsky
Properly propagate changes when range or trees are mutated
Does the same thing as #6817, but storing Range instances directly in their start and end containers.
Cc @dzbarsky
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8506)
<!-- Reviewable:end -->
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); } } |