SVGClipPathElement.cpp 811 B

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