mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00
LibWeb: Use Vector::in_reverse() in DOM::EventDispatcher
This commit is contained in:
parent
35fcb028e9
commit
32bff52c25
1 changed files with 1 additions and 3 deletions
|
@ -286,9 +286,7 @@ bool EventDispatcher::dispatch(NonnullRefPtr<EventTarget> target, NonnullRefPtr<
|
|||
if (activation_target)
|
||||
activation_target->legacy_pre_activation_behavior();
|
||||
|
||||
for (ssize_t i = event->path().size() - 1; i >= 0; --i) {
|
||||
auto& entry = event->path().at(i);
|
||||
|
||||
for (auto& entry : event->path().in_reverse()) {
|
||||
if (entry.shadow_adjusted_target)
|
||||
event->set_phase(Event::Phase::AtTarget);
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue