1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:47:44 +00:00

LibWeb: Use RefCountForwarder for NavigationTiming::PerformanceTiming

This object already forwarded its ref count to DOM::Window. This patch
simply adopts the new RefCountForwarder base to achieve the same thing.
This commit is contained in:
Andreas Kling 2021-12-09 12:42:09 +01:00
parent c9a35e104b
commit e1287a9a45
2 changed files with 6 additions and 19 deletions

View file

@ -4,13 +4,12 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibWeb/DOM/Window.h>
#include <LibWeb/NavigationTiming/PerformanceTiming.h>
namespace Web::NavigationTiming {
PerformanceTiming::PerformanceTiming(DOM::Window& window)
: m_window(window)
: RefCountForwarder(window)
{
}
@ -18,14 +17,4 @@ PerformanceTiming::~PerformanceTiming()
{
}
void PerformanceTiming::ref()
{
m_window.ref();
}
void PerformanceTiming::unref()
{
m_window.unref();
}
}