HTMLIFrameElement.h 779 B

12345678910111213141516171819202122232425262728293031
  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. public:
  11. using WrapperType = Bindings::HTMLIFrameElementWrapper;
  12. HTMLIFrameElement(DOM::Document&, DOM::QualifiedName);
  13. virtual ~HTMLIFrameElement() override;
  14. virtual RefPtr<Layout::Node> create_layout_node(NonnullRefPtr<CSS::StyleProperties>) override;
  15. private:
  16. virtual void inserted() override;
  17. virtual void parse_attribute(const FlyString& name, const String& value) override;
  18. void load_src(const String&);
  19. };
  20. void run_iframe_load_event_steps(HTML::HTMLIFrameElement&);
  21. }