mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-24 09:52:31 +00:00
LibWeb: Don't take rendering task from queue while running rendering
If event loop is already executing rendering task, we should not start the next rendering task until the current one is finished. Fixes https://github.com/LadybirdBrowser/ladybird/issues/3717
This commit is contained in:
parent
b8af3fccf6
commit
4ca330adef
Notes:
github-actions[bot]
2025-02-27 16:34:31 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 4ca330adef
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3721
Reviewed-by: https://github.com/awesomekling ✅
3 changed files with 11 additions and 5 deletions
|
@ -90,6 +90,8 @@ public:
|
|||
void unpause(Badge<PauseHandle>, JS::Object const& global, HighResolutionTime::DOMHighResTimeStamp);
|
||||
bool execution_paused() const { return m_execution_paused; }
|
||||
|
||||
bool running_rendering_task() const { return m_running_rendering_task; }
|
||||
|
||||
private:
|
||||
explicit EventLoop(Type);
|
||||
|
||||
|
@ -133,7 +135,7 @@ private:
|
|||
|
||||
bool m_skip_event_loop_processing_steps { false };
|
||||
|
||||
bool m_is_running_rendering_task { false };
|
||||
bool m_running_rendering_task { false };
|
||||
|
||||
GC::Ptr<GC::Function<void()>> m_rendering_task_function;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue