mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02: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:
committed by
Alexander Kalenik
parent
39fff3cf8a
commit
ed1337add1
Notes:
github-actions[bot]
2025-06-06 01:58:02 +00:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/ed1337add17 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5013 Reviewed-by: https://github.com/gmta
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user