mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-08 01:51:57 +00:00
LibJS: Don't start rendering thread for a navigable created for SVG
Traversable navigable created for rendering svg element doesn't perform any actual rendering, so there is no need to spawn a rendering thread.
This commit is contained in:
parent
39fff3cf8a
commit
ed1337add1
Notes:
github-actions[bot]
2025-06-06 01:58:02 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: ed1337add1
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5013
Reviewed-by: https://github.com/gmta
2 changed files with 8 additions and 4 deletions
|
@ -28,7 +28,9 @@ RenderingThread::~RenderingThread()
|
|||
{
|
||||
// Note: Promise rejection is expected to signal the thread to exit.
|
||||
m_main_thread_exit_promise->reject(Error::from_errno(ECANCELED));
|
||||
(void)m_thread->join();
|
||||
if (m_thread) {
|
||||
(void)m_thread->join();
|
||||
}
|
||||
}
|
||||
|
||||
void RenderingThread::start(DisplayListPlayerType display_list_player_type)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue