mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Auto merge of #5844 - pgonda:removing-poping-dispatch_event, r=Ms2ger
fixes for #5843 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5844) <!-- Reviewable:end -->
This commit is contained in:
commit
aef48baeb4
1 changed files with 0 additions and 6 deletions
|
@ -128,12 +128,6 @@ pub fn dispatch_event<'a, 'b>(target: JSRef<'a, EventTarget>,
|
|||
None => {}
|
||||
}
|
||||
|
||||
// Root ordering restrictions mean we need to unroot the chain entries
|
||||
// in the same order they were rooted.
|
||||
while chain.len() > 0 {
|
||||
let _ = chain.pop();
|
||||
}
|
||||
|
||||
event.set_dispatching(false);
|
||||
event.set_phase(EventPhase::None);
|
||||
event.clear_current_target();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue