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:
parent
81ef2b646e
commit
6e341cd696
4 changed files with 38 additions and 11 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue