diff options
author | tanishka <109246904+taniishkaaa@users.noreply.github.com> | 2024-10-20 13:35:11 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-20 08:05:11 +0000 |
commit | a57b6a3f79314910543024c951d365e55efa154e (patch) | |
tree | 1a9ec5c4989abe059b638701fc39da1467505485 /components/script/dom/htmlobjectelement.rs | |
parent | d0d02cd56cb646da1f2193e57561b78d5e4b6bdf (diff) | |
download | servo-a57b6a3f79314910543024c951d365e55efa154e.tar.gz servo-a57b6a3f79314910543024c951d365e55efa154e.zip |
CanGc fixes through focusevent.rs & hashchangeevent.rs (#33921)
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
Diffstat (limited to 'components/script/dom/htmlobjectelement.rs')
-rwxr-xr-x | components/script/dom/htmlobjectelement.rs | 5 |
1 files changed, 3 insertions, 2 deletions
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 |