mirror of
https://github.com/servo/servo
synced 2026-04-30 11:27:28 +02:00
add CanGc as argument to Validatable.validity_state (#40155)
add CanGc as argument to Validatable.validity_state Testing: These changes do not require tests because they are a refactor. Addresses part of https://github.com/servo/servo/issues/34573. Signed-off-by: Yerkebulan Tulibergenov <yerkebulan@gmail.com>
This commit is contained in:
committed by
GitHub
parent
92cc41abdd
commit
132bd24c6d
@@ -129,7 +129,7 @@ impl HTMLOptionElement {
|
||||
fn update_select_validity(&self, can_gc: CanGc) {
|
||||
if let Some(select) = self.owner_select_element() {
|
||||
select
|
||||
.validity_state()
|
||||
.validity_state(can_gc)
|
||||
.perform_validation_and_update(ValidationFlags::all(), can_gc);
|
||||
}
|
||||
}
|
||||
@@ -371,7 +371,7 @@ impl VirtualMethods for HTMLOptionElement {
|
||||
.next()
|
||||
{
|
||||
select
|
||||
.validity_state()
|
||||
.validity_state(can_gc)
|
||||
.perform_validation_and_update(ValidationFlags::all(), can_gc);
|
||||
select.ask_for_reset();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user