aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmloptionelement.rs
diff options
context:
space:
mode:
authorFernando Jiménez Moreno <ferjmoreno@gmail.com>2019-03-05 18:01:59 +0100
committerFernando Jiménez Moreno <ferjmoreno@gmail.com>2019-04-26 11:31:18 +0200
commit813b242419d41505641b433c3b38b0d0542c559d (patch)
treeb0620df09b19e2a271e9d09994520349ba1e9a53 /components/script/dom/htmloptionelement.rs
parent740aae06bad9e5ff864c914117cab1e74a727614 (diff)
downloadservo-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/htmloptionelement.rs')
-rw-r--r--components/script/dom/htmloptionelement.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/htmloptionelement.rs b/components/script/dom/htmloptionelement.rs
index e232aa63712..e9e2ce89c28 100644
--- a/components/script/dom/htmloptionelement.rs
+++ b/components/script/dom/htmloptionelement.rs
@@ -19,7 +19,7 @@ use crate::dom::htmlformelement::HTMLFormElement;
use crate::dom::htmloptgroupelement::HTMLOptGroupElement;
use crate::dom::htmlscriptelement::HTMLScriptElement;
use crate::dom::htmlselectelement::HTMLSelectElement;
-use crate::dom::node::{Node, UnbindContext};
+use crate::dom::node::{BindContext, Node, UnbindContext};
use crate::dom::text::Text;
use crate::dom::virtualmethods::VirtualMethods;
use dom_struct::dom_struct;
@@ -235,9 +235,9 @@ impl VirtualMethods for HTMLOptionElement {
}
}
- 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);
}
self.upcast::<Element>()