aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmliframeelement.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2015-10-24 02:58:31 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2015-12-13 21:14:31 +0100
commit8f01790f06212e97c80ce85f486d0a2232d608bc (patch)
treebc5b53b7e51edb89d7500f45bc6f65363e858573 /components/script/dom/htmliframeelement.rs
parentb63ca94c7f8f67de548c3319b50219c3262076f6 (diff)
downloadservo-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/htmliframeelement.rs')
-rw-r--r--components/script/dom/htmliframeelement.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/components/script/dom/htmliframeelement.rs b/components/script/dom/htmliframeelement.rs
index 72a38ce8c89..72be063c954 100644
--- a/components/script/dom/htmliframeelement.rs
+++ b/components/script/dom/htmliframeelement.rs
@@ -18,7 +18,7 @@ use dom::document::Document;
use dom::element::{AttributeMutation, Element, RawLayoutElementHelpers};
use dom::event::{Event, EventBubbles, EventCancelable};
use dom::htmlelement::HTMLElement;
-use dom::node::{Node, window_from_node};
+use dom::node::{Node, UnbindContext, window_from_node};
use dom::urlhelper::UrlHelper;
use dom::virtualmethods::VirtualMethods;
use dom::window::Window;
@@ -471,10 +471,8 @@ impl VirtualMethods for HTMLIFrameElement {
}
}
- fn unbind_from_tree(&self, tree_in_doc: bool) {
- if let Some(ref s) = self.super_type() {
- s.unbind_from_tree(tree_in_doc);
- }
+ fn unbind_from_tree(&self, context: &UnbindContext) {
+ self.super_type().unwrap().unbind_from_tree(context);
// https://html.spec.whatwg.org/multipage/#a-browsing-context-is-discarded
if let Some(pipeline_id) = self.pipeline_id.get() {