mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
CanGc fixes through focusevent.rs & hashchangeevent.rs (#33921)
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
parent
d0d02cd56c
commit
a57b6a3f79
20 changed files with 140 additions and 69 deletions
|
@ -25,6 +25,7 @@ use crate::dom::node::{window_from_node, Node, ShadowIncluding};
|
|||
use crate::dom::validation::Validatable;
|
||||
use crate::dom::validitystate::ValidityState;
|
||||
use crate::dom::virtualmethods::VirtualMethods;
|
||||
use crate::script_runtime::CanGc;
|
||||
use crate::script_thread::ScriptThread;
|
||||
|
||||
#[dom_struct]
|
||||
|
@ -131,8 +132,8 @@ impl HTMLFieldSetElementMethods for HTMLFieldSetElement {
|
|||
}
|
||||
|
||||
// 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
|
||||
|
@ -219,7 +220,7 @@ impl VirtualMethods for HTMLFieldSetElement {
|
|||
);
|
||||
}
|
||||
}
|
||||
element.update_sequentially_focusable_status();
|
||||
element.update_sequentially_focusable_status(CanGc::note());
|
||||
}
|
||||
} else {
|
||||
for field in fields {
|
||||
|
@ -240,10 +241,10 @@ impl VirtualMethods for HTMLFieldSetElement {
|
|||
);
|
||||
}
|
||||
}
|
||||
element.update_sequentially_focusable_status();
|
||||
element.update_sequentially_focusable_status(CanGc::note());
|
||||
}
|
||||
}
|
||||
element.update_sequentially_focusable_status();
|
||||
element.update_sequentially_focusable_status(CanGc::note());
|
||||
},
|
||||
local_name!("form") => {
|
||||
self.form_attribute_mutated(mutation);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue