aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmllinkelement.rs
diff options
context:
space:
mode:
authorFernando Jiménez Moreno <ferjmoreno@gmail.com>2019-01-27 17:11:11 +0100
committerFernando Jiménez Moreno <ferjmoreno@gmail.com>2019-04-26 10:17:45 +0200
commit441357b74e38b604a60206ff38e5cf3719a15e08 (patch)
tree58cc06819fac57dfe6687807842a903bdb1b2cb0 /components/script/dom/htmllinkelement.rs
parent640fc04743e38491e582a6ba30ded5bebb0a3ebb (diff)
downloadservo-441357b74e38b604a60206ff38e5cf3719a15e08.tar.gz
servo-441357b74e38b604a60206ff38e5cf3719a15e08.zip
Add is_connected flag to node and use it to replace most uses of is_in_doc
Diffstat (limited to 'components/script/dom/htmllinkelement.rs')
-rw-r--r--components/script/dom/htmllinkelement.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/htmllinkelement.rs b/components/script/dom/htmllinkelement.rs
index 36bafa58fb5..6623593bc43 100644
--- a/components/script/dom/htmllinkelement.rs
+++ b/components/script/dom/htmllinkelement.rs
@@ -183,7 +183,7 @@ impl VirtualMethods for HTMLLinkElement {
fn attribute_mutated(&self, attr: &Attr, mutation: AttributeMutation) {
self.super_type().unwrap().attribute_mutated(attr, mutation);
- if !self.upcast::<Node>().is_in_doc() || mutation.is_removal() {
+ if !self.upcast::<Node>().is_connected() || mutation.is_removal() {
return;
}
@@ -222,12 +222,12 @@ impl VirtualMethods for HTMLLinkElement {
}
}
- fn bind_to_tree(&self, tree_in_doc: bool) {
+ fn bind_to_tree(&self, tree_connected: bool) {
if let Some(ref s) = self.super_type() {
- s.bind_to_tree(tree_in_doc);
+ s.bind_to_tree(tree_connected);
}
- if tree_in_doc {
+ if tree_connected {
let element = self.upcast();
let rel = get_attr(element, &local_name!("rel"));