aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlheadelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/htmlheadelement.rs')
-rw-r--r--components/script/dom/htmlheadelement.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/htmlheadelement.rs b/components/script/dom/htmlheadelement.rs
index e9c6f43b92b..5daf82fd896 100644
--- a/components/script/dom/htmlheadelement.rs
+++ b/components/script/dom/htmlheadelement.rs
@@ -5,7 +5,7 @@
use crate::dom::bindings::codegen::Bindings::DocumentBinding::DocumentMethods;
use crate::dom::bindings::codegen::Bindings::HTMLHeadElementBinding;
use crate::dom::bindings::inheritance::Castable;
-use crate::dom::bindings::root::{DomRoot, RootedReference};
+use crate::dom::bindings::root::DomRoot;
use crate::dom::document::{determine_policy_for_token, Document};
use crate::dom::element::Element;
use crate::dom::htmlelement::HTMLElement;
@@ -49,7 +49,7 @@ impl HTMLHeadElement {
pub fn set_document_referrer(&self) {
let doc = document_from_node(self);
- if doc.GetHead().r() != Some(self) {
+ if doc.GetHead().deref() != Some(self) {
return;
}
@@ -65,7 +65,7 @@ impl HTMLHeadElement {
});
for meta in candidates {
- if let Some(content) = meta.get_attribute(&ns!(), &local_name!("content")).r() {
+ if let Some(ref content) = meta.get_attribute(&ns!(), &local_name!("content")) {
let content = content.value();
let content_val = content.trim();
if !content_val.is_empty() {