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:
parent
c9a35e104b
commit
e1287a9a45
2 changed files with 6 additions and 19 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue