aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlobjectelement.rs
diff options
context:
space:
mode:
authortanishka <109246904+taniishkaaa@users.noreply.github.com>2024-10-20 13:35:11 +0530
committerGitHub <noreply@github.com>2024-10-20 08:05:11 +0000
commita57b6a3f79314910543024c951d365e55efa154e (patch)
tree1a9ec5c4989abe059b638701fc39da1467505485 /components/script/dom/htmlobjectelement.rs
parentd0d02cd56cb646da1f2193e57561b78d5e4b6bdf (diff)
downloadservo-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-xcomponents/script/dom/htmlobjectelement.rs5
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