mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:07:35 +00:00
LibWeb: Make DOM timers cancellable and stop leaking them
This patch adds a Web::Timer object that represents a single timer registration made with window.setTimeout() or window.setInterval(). All live timers are owned by the DOM Window object. The timers can be stopped via clearTimeout() or clearInterval(). Note that those API's are actually interchangeable, but we have to support both.
This commit is contained in:
parent
e1aef94a40
commit
8d2194bdbd
8 changed files with 212 additions and 21 deletions
|
@ -57,6 +57,7 @@ set(SOURCES
|
|||
DOM/ParentNode.cpp
|
||||
DOM/TagNames.cpp
|
||||
DOM/Text.cpp
|
||||
DOM/Timer.cpp
|
||||
DOM/Window.cpp
|
||||
DOM/XMLHttpRequest.cpp
|
||||
DOMTreeModel.cpp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue