aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/validation.rs
diff options
context:
space:
mode:
authorKunga Derick Abongho <abonghoderick@gmail.com>2025-03-29 14:09:56 +0100
committerGitHub <noreply@github.com>2025-03-29 13:09:56 +0000
commit83da63f638b15009b842a1f712fa5116f0e2d466 (patch)
tree7a81fe22a5726a2c0742e42da36a43cc2145406f /components/script/dom/validation.rs
parentb5c8164e9982ebd6212ad21910826ce8b2631930 (diff)
downloadservo-83da63f638b15009b842a1f712fa5116f0e2d466.tar.gz
servo-83da63f638b15009b842a1f712fa5116f0e2d466.zip
resolve issue #36074 new_js_regex and matches_js_regex need a CanGc argument (#36111)
* new_js_regex and matches_js_regex need a CanGc argument Signed-off-by: dericko681 <abonghoderick@gmail.com> * new_js_regex and matches_js_regex need a CanGc argument Signed-off-by: dericko681 <abonghoderick@gmail.com> * edit Propagate CanGc arguments through new_js_regex and matches_js_regex Signed-off-by: dericko681 <abonghoderick@gmail.com> * Propagate CanGc arguments through new_js_regex and matches_js_regex Signed-off-by: dericko681 <abonghoderick@gmail.com> * Propagate CanGc arguments through new_js_regex and matches_js_regex Signed-off-by: dericko681 <abonghoderick@gmail.com> * Propagate CanGc arguments through new_js_regex and matches_js_regex Signed-off-by: dericko681 <abonghoderick@gmail.com> --------- Signed-off-by: dericko681 <abonghoderick@gmail.com>
Diffstat (limited to 'components/script/dom/validation.rs')
-rwxr-xr-xcomponents/script/dom/validation.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/components/script/dom/validation.rs b/components/script/dom/validation.rs
index 666eac6dcee..6a0c88c56ce 100755
--- a/components/script/dom/validation.rs
+++ b/components/script/dom/validation.rs
@@ -25,7 +25,11 @@ pub(crate) trait Validatable {
fn is_instance_validatable(&self) -> bool;
// Check if element satisfies its constraints, excluding custom errors
- fn perform_validation(&self, _validate_flags: ValidationFlags) -> ValidationFlags {
+ fn perform_validation(
+ &self,
+ _validate_flags: ValidationFlags,
+ _can_gc: CanGc,
+ ) -> ValidationFlags {
ValidationFlags::empty()
}