2021-12-30 22:15:38 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2021, sin-ack <sin-ack@protonmail.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
2022-09-25 16:38:21 -06:00
|
|
|
#include <LibWeb/Bindings/Intrinsics.h>
|
2022-09-02 23:58:31 +02:00
|
|
|
#include <LibWeb/HTML/TextMetrics.h>
|
2021-12-30 22:15:38 +00:00
|
|
|
|
|
|
|
namespace Web::HTML {
|
|
|
|
|
2022-09-25 16:38:21 -06:00
|
|
|
JS::NonnullGCPtr<TextMetrics> TextMetrics::create(JS::Realm& realm)
|
2021-12-30 22:15:38 +00:00
|
|
|
{
|
2022-09-25 16:38:21 -06:00
|
|
|
return *realm.heap().allocate<TextMetrics>(realm, realm);
|
2021-12-30 22:15:38 +00:00
|
|
|
}
|
|
|
|
|
2022-09-25 16:38:21 -06:00
|
|
|
TextMetrics::TextMetrics(JS::Realm& realm)
|
|
|
|
: PlatformObject(realm)
|
2022-09-02 23:58:31 +02:00
|
|
|
{
|
2022-09-25 16:38:21 -06:00
|
|
|
set_prototype(&Bindings::cached_web_prototype(realm, "TextMetrics"));
|
2022-09-02 23:58:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
TextMetrics::~TextMetrics() = default;
|
|
|
|
|
2021-12-30 22:15:38 +00:00
|
|
|
}
|