Serenity Operating System
at master 34 lines 811 B view raw
1/* 2 * Copyright (c) 2022, Andreas Kling <kling@serenityos.org> 3 * 4 * SPDX-License-Identifier: BSD-2-Clause 5 */ 6 7#include <LibWeb/Bindings/Intrinsics.h> 8#include <LibWeb/SVG/SVGClipPathElement.h> 9 10namespace Web::SVG { 11 12SVGClipPathElement::SVGClipPathElement(DOM::Document& document, DOM::QualifiedName qualified_name) 13 : SVGElement(document, move(qualified_name)) 14{ 15} 16 17SVGClipPathElement::~SVGClipPathElement() 18{ 19} 20 21JS::ThrowCompletionOr<void> SVGClipPathElement::initialize(JS::Realm& realm) 22{ 23 MUST_OR_THROW_OOM(Base::initialize(realm)); 24 set_prototype(&Bindings::ensure_web_prototype<Bindings::SVGClipPathElementPrototype>(realm, "SVGClipPathElement")); 25 26 return {}; 27} 28 29JS::GCPtr<Layout::Node> SVGClipPathElement::create_layout_node(NonnullRefPtr<CSS::StyleProperties>) 30{ 31 return nullptr; 32} 33 34}