aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlparagraphelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/htmlparagraphelement.rs')
-rw-r--r--components/script/dom/htmlparagraphelement.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/dom/htmlparagraphelement.rs b/components/script/dom/htmlparagraphelement.rs
index 9ac3367738a..85adea6ae48 100644
--- a/components/script/dom/htmlparagraphelement.rs
+++ b/components/script/dom/htmlparagraphelement.rs
@@ -10,6 +10,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 HTMLParagraphElement {
@@ -33,6 +34,7 @@ impl HTMLParagraphElement {
prefix: Option<Prefix>,
document: &Document,
proto: Option<HandleObject>,
+ can_gc: CanGc,
) -> DomRoot<HTMLParagraphElement> {
Node::reflect_node_with_proto(
Box::new(HTMLParagraphElement::new_inherited(
@@ -40,6 +42,7 @@ impl HTMLParagraphElement {
)),
document,
proto,
+ can_gc,
)
}
}