1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:07:34 +00:00

LibWeb: Let HTML::EventLoop drive the firing of resize events

This commit is contained in:
Andreas Kling 2021-10-03 16:42:03 +02:00
parent 81ef2b646e
commit 6e341cd696
4 changed files with 38 additions and 11 deletions

View file

@ -301,6 +301,8 @@ public:
bool hidden() const;
String visibility_state() const;
void run_the_resize_steps();
private:
explicit Document(const AK::URL&);
@ -388,6 +390,9 @@ private:
// https://html.spec.whatwg.org/#page-showing
bool m_page_showing { false };
// Used by run_the_resize_steps().
Gfx::IntSize m_last_viewport_size;
};
}