summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/TextMetrics.cpp
blob: 5041db40063db8a5fab03326288c6209ae80ce0c (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
/*
 * Copyright (c) 2021, sin-ack <sin-ack@protonmail.com>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#include <LibWeb/Bindings/Intrinsics.h>
#include <LibWeb/HTML/TextMetrics.h>

namespace Web::HTML {

JS::NonnullGCPtr<TextMetrics> TextMetrics::create(JS::Realm& realm)
{
    return realm.heap().allocate<TextMetrics>(realm, realm);
}

TextMetrics::TextMetrics(JS::Realm& realm)
    : PlatformObject(realm)
{
    set_prototype(&Bindings::cached_web_prototype(realm, "TextMetrics"));
}

TextMetrics::~TextMetrics() = default;

}