aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlhtmlelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/htmlhtmlelement.rs')
-rw-r--r--components/script/dom/htmlhtmlelement.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/dom/htmlhtmlelement.rs b/components/script/dom/htmlhtmlelement.rs
index 7331a0f7513..ebb07276e2e 100644
--- a/components/script/dom/htmlhtmlelement.rs
+++ b/components/script/dom/htmlhtmlelement.rs
@@ -11,6 +11,7 @@ use crate::dom::bindings::root::DomRoot;
use crate::dom::document::Document;
use crate::dom::htmlelement::HTMLElement;
use crate::dom::node::Node;
+use crate::script_runtime::CanGc;
#[dom_struct]
pub struct HTMLHtmlElement {
@@ -35,11 +36,13 @@ impl HTMLHtmlElement {
prefix: Option<Prefix>,
document: &Document,
proto: Option<HandleObject>,
+ can_gc: CanGc,
) -> DomRoot<HTMLHtmlElement> {
let n = Node::reflect_node_with_proto(
Box::new(HTMLHtmlElement::new_inherited(localName, prefix, document)),
document,
proto,
+ can_gc,
);
n.upcast::<Node>().set_weird_parser_insertion_mode();