aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlselectelement.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/htmlselectelement.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/htmlselectelement.rs')
-rwxr-xr-xcomponents/script/dom/htmlselectelement.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/htmlselectelement.rs b/components/script/dom/htmlselectelement.rs
index aa5e6f8f469..7c53abfd17b 100755
--- a/components/script/dom/htmlselectelement.rs
+++ b/components/script/dom/htmlselectelement.rs
@@ -39,6 +39,7 @@ use crate::dom::nodelist::NodeList;
use crate::dom::validation::{is_barred_by_datalist_ancestor, Validatable};
use crate::dom::validitystate::{ValidationFlags, ValidityState};
use crate::dom::virtualmethods::VirtualMethods;
+use crate::script_runtime::CanGc;
#[derive(JSTraceable, MallocSizeOf)]
struct OptionsFilter;
@@ -395,8 +396,8 @@ impl HTMLSelectElementMethods for HTMLSelectElement {
}
// 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