mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Make CanGc derive Copy and Clone (#33407)
Signed-off-by: Taym <haddadi.taym@gmail.com>
This commit is contained in:
parent
637770600f
commit
747e562ff0
15 changed files with 61 additions and 72 deletions
|
@ -399,7 +399,7 @@ impl Element {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn invoke_reactions(&self, _can_gc: CanGc) {
|
||||
pub fn invoke_reactions(&self, can_gc: CanGc) {
|
||||
loop {
|
||||
rooted_vec!(let mut reactions);
|
||||
match *self.rare_data_mut() {
|
||||
|
@ -414,7 +414,7 @@ impl Element {
|
|||
}
|
||||
|
||||
for reaction in reactions.iter() {
|
||||
reaction.invoke(self, CanGc::note());
|
||||
reaction.invoke(self, can_gc);
|
||||
}
|
||||
|
||||
reactions.clear();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue