From a57b6a3f79314910543024c951d365e55efa154e Mon Sep 17 00:00:00 2001 From: tanishka <109246904+taniishkaaa@users.noreply.github.com> Date: Sun, 20 Oct 2024 13:35:11 +0530 Subject: CanGc fixes through focusevent.rs & hashchangeevent.rs (#33921) Signed-off-by: taniishkaaa --- components/script/dom/htmlobjectelement.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'components/script/dom/htmlobjectelement.rs') diff --git a/components/script/dom/htmlobjectelement.rs b/components/script/dom/htmlobjectelement.rs index 25794aca176..0518bdbab2c 100755 --- a/components/script/dom/htmlobjectelement.rs +++ b/components/script/dom/htmlobjectelement.rs @@ -24,6 +24,7 @@ use crate::dom::node::{window_from_node, Node}; use crate::dom::validation::Validatable; use crate::dom::validitystate::ValidityState; use crate::dom::virtualmethods::VirtualMethods; +use crate::script_runtime::CanGc; #[dom_struct] pub struct HTMLObjectElement { @@ -114,8 +115,8 @@ impl HTMLObjectElementMethods for HTMLObjectElement { } // https://html.spec.whatwg.org/multipage/#dom-cva-reportvalidity - fn ReportValidity(&self) -> bool { - self.report_validity() + fn ReportValidity(&self, can_gc: CanGc) -> bool { + self.report_validity(can_gc) } // https://html.spec.whatwg.org/multipage/#dom-cva-validationmessage -- cgit v1.2.3