mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 11:58:13 +00:00
LibWeb: Fire resize event at the Window instead of Document
The spec says "fire an event named resize at the Window object associated with doc." However, we were accidentally firing it at `doc` instead of the Window.
This commit is contained in:
parent
dbc2b746b8
commit
8d05c4a675
1 changed files with 1 additions and 1 deletions
|
@ -1286,7 +1286,7 @@ void Document::run_the_resize_steps()
|
|||
return;
|
||||
m_last_viewport_size = viewport_size;
|
||||
|
||||
dispatch_event(DOM::Event::create(UIEvents::EventNames::resize));
|
||||
window().dispatch_event(DOM::Event::create(UIEvents::EventNames::resize));
|
||||
|
||||
update_layout();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue