mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:57:46 +00:00
LibWeb: Use Core::Timer for style and layout update timers in Document
Fixes leaking of DOM::Document by capturing it into JS::SafeFunction callback when using Platform::Timer for style and layout update timers.
This commit is contained in:
parent
8ec691057f
commit
608a730bd6
2 changed files with 7 additions and 7 deletions
|
@ -531,8 +531,8 @@ private:
|
|||
Optional<Color> m_active_link_color;
|
||||
Optional<Color> m_visited_link_color;
|
||||
|
||||
RefPtr<Platform::Timer> m_style_update_timer;
|
||||
RefPtr<Platform::Timer> m_layout_update_timer;
|
||||
RefPtr<Core::Timer> m_style_update_timer;
|
||||
RefPtr<Core::Timer> m_layout_update_timer;
|
||||
|
||||
JS::GCPtr<HTML::HTMLParser> m_parser;
|
||||
bool m_active_parser_was_aborted { false };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue