mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-28 14:02:51 +00:00
It wasn't used anyways, instead preferring to do dynamic_casts in every method. Let's keep doing that, but move it into a helper function.
26 lines
529 B
C++
26 lines
529 B
C++
/*
|
|
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibWeb/NavigationTiming/PerformanceTiming.h>
|
|
|
|
namespace Web::NavigationTiming {
|
|
|
|
JS_DEFINE_ALLOCATOR(PerformanceTiming);
|
|
|
|
PerformanceTiming::PerformanceTiming(JS::Realm& realm)
|
|
: PlatformObject(realm)
|
|
{
|
|
}
|
|
|
|
PerformanceTiming::~PerformanceTiming() = default;
|
|
|
|
void PerformanceTiming::initialize(JS::Realm& realm)
|
|
{
|
|
Base::initialize(realm);
|
|
WEB_SET_PROTOTYPE_FOR_INTERFACE(PerformanceTiming);
|
|
}
|
|
|
|
}
|