/* * Copyright (c) 2021, sin-ack * * SPDX-License-Identifier: BSD-2-Clause */ #include #include namespace Web::HTML { JS::NonnullGCPtr TextMetrics::create(JS::Realm& realm) { return *realm.heap().allocate(realm, realm); } TextMetrics::TextMetrics(JS::Realm& realm) : PlatformObject(realm) { set_prototype(&Bindings::cached_web_prototype(realm, "TextMetrics")); } TextMetrics::~TextMetrics() = default; }