/* * Copyright (c) 2020, Matthew Olsson * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include namespace Web::SVG { SVGGeometryElement::SVGGeometryElement(DOM::Document& document, DOM::QualifiedName qualified_name) : SVGGraphicsElement(document, move(qualified_name)) { set_prototype(&window().cached_web_prototype("SVGGeometryElement")); } RefPtr SVGGeometryElement::create_layout_node(NonnullRefPtr style) { return adopt_ref(*new Layout::SVGGeometryBox(document(), *this, move(style))); } float SVGGeometryElement::get_total_length() { return 0; } JS::NonnullGCPtr SVGGeometryElement::get_point_at_length(float distance) { (void)distance; return Geometry::DOMPoint::create_with_global_object(window(), 0, 0, 0, 0); } }