blob: cc5f507d006b71ca999568f0a8d202854a409de2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/*
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibWeb/NavigationTiming/PerformanceTiming.h>
namespace Web::NavigationTiming {
PerformanceTiming::PerformanceTiming(HTML::Window& window)
: PlatformObject(window.realm())
, m_window(window)
{
set_prototype(&Bindings::cached_web_prototype(realm(), "PerformanceTiming"));
}
PerformanceTiming::~PerformanceTiming() = default;
void PerformanceTiming::visit_edges(Cell::Visitor& visitor)
{
Base::visit_edges(visitor);
visitor.visit(m_window.ptr());
}
}
|