HTMLIFrameElement.h 881 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (c) 2020-2021, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/HTML/BrowsingContextContainer.h>
  8. namespace Web::HTML {
  9. class HTMLIFrameElement final : public BrowsingContextContainer {
  10. WEB_PLATFORM_OBJECT(HTMLIFrameElement, BrowsingContextContainer);
  11. public:
  12. virtual ~HTMLIFrameElement() override;
  13. virtual RefPtr<Layout::Node> create_layout_node(NonnullRefPtr<CSS::StyleProperties>) override;
  14. private:
  15. HTMLIFrameElement(DOM::Document&, DOM::QualifiedName);
  16. virtual void inserted() override;
  17. virtual void removed_from(Node*) override;
  18. virtual void parse_attribute(FlyString const& name, String const& value) override;
  19. void load_src(String const&);
  20. };
  21. void run_iframe_load_event_steps(HTML::HTMLIFrameElement&);
  22. }
  23. WRAPPER_HACK(HTMLIFrameElement, Web::HTML)