mirror of
https://github.com/servo/servo.git
synced 2025-07-23 23:33:43 +01:00
Don't fire slotchange events when there's already a pending event for the same slot (#35222)
* Don't fire slotchange events if there is already a pending event for the same slot Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Update WPT expectations Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
parent
5e9de2cb61
commit
64b40ea700
4 changed files with 33 additions and 49 deletions
|
@ -2171,7 +2171,7 @@ impl Node {
|
|||
if parent.is_in_a_shadow_tree() {
|
||||
if let Some(slot_element) = parent.downcast::<HTMLSlotElement>() {
|
||||
if !slot_element.has_assigned_nodes() {
|
||||
ScriptThread::signal_a_slot_change(slot_element);
|
||||
slot_element.signal_a_slot_change();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2373,7 +2373,7 @@ impl Node {
|
|||
if parent.is_in_a_shadow_tree() {
|
||||
if let Some(slot_element) = parent.downcast::<HTMLSlotElement>() {
|
||||
if !slot_element.has_assigned_nodes() {
|
||||
ScriptThread::signal_a_slot_change(slot_element);
|
||||
slot_element.signal_a_slot_change();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue