/* * Copyright (c) 2022, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #include #include namespace Web::Geometry { JS::NonnullGCPtr DOMPoint::create_with_global_object(HTML::Window& window, double x, double y, double z, double w) { return *window.heap().allocate(window.realm(), window, x, y, z, w); } DOMPoint::DOMPoint(HTML::Window& window, double x, double y, double z, double w) : DOMPointReadOnly(window, x, y, z, w) { set_prototype(&window.cached_web_prototype("DOMPoint")); } DOMPoint::~DOMPoint() = default; }