HTMLEmbedElement.h 707 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (c) 2020, the SerenityOS developers.
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/HTML/HTMLElement.h>
  8. namespace Web::HTML {
  9. class HTMLEmbedElement final : public HTMLElement {
  10. WEB_PLATFORM_OBJECT(HTMLEmbedElement, HTMLElement);
  11. JS_DECLARE_ALLOCATOR(HTMLEmbedElement);
  12. public:
  13. virtual ~HTMLEmbedElement() override;
  14. private:
  15. HTMLEmbedElement(DOM::Document&, DOM::QualifiedName);
  16. virtual bool is_html_embed_element() const override { return true; }
  17. virtual void initialize(JS::Realm&) override;
  18. };
  19. }
  20. namespace Web::DOM {
  21. template<>
  22. inline bool Node::fast_is<HTML::HTMLEmbedElement>() const { return is_html_embed_element(); }
  23. }