/src/serenity/Userland/Libraries/LibWeb/HTML/TextMetrics.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * Copyright (c) 2021, sin-ack <sin-ack@protonmail.com> |
3 | | * |
4 | | * SPDX-License-Identifier: BSD-2-Clause |
5 | | */ |
6 | | |
7 | | #include <LibWeb/Bindings/Intrinsics.h> |
8 | | #include <LibWeb/Bindings/TextMetricsPrototype.h> |
9 | | #include <LibWeb/HTML/TextMetrics.h> |
10 | | #include <LibWeb/WebIDL/ExceptionOr.h> |
11 | | |
12 | | namespace Web::HTML { |
13 | | |
14 | | JS_DEFINE_ALLOCATOR(TextMetrics); |
15 | | |
16 | | JS::NonnullGCPtr<TextMetrics> TextMetrics::create(JS::Realm& realm) |
17 | 0 | { |
18 | 0 | return realm.heap().allocate<TextMetrics>(realm, realm); |
19 | 0 | } |
20 | | |
21 | | TextMetrics::TextMetrics(JS::Realm& realm) |
22 | 0 | : PlatformObject(realm) |
23 | 0 | { |
24 | 0 | } |
25 | | |
26 | 0 | TextMetrics::~TextMetrics() = default; |
27 | | |
28 | | void TextMetrics::initialize(JS::Realm& realm) |
29 | 0 | { |
30 | 0 | Base::initialize(realm); |
31 | 0 | WEB_SET_PROTOTYPE_FOR_INTERFACE(TextMetrics); |
32 | 0 | } |
33 | | |
34 | | } |