diff options
author | Andreas Kling <kling@serenityos.org> | 2021-11-18 15:01:28 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-18 21:11:30 +0100 |
commit | 7c57961c61aada999bf1dbc871708546b4fe1ba9 (patch) | |
tree | 17bbd399baddc8cb18a6cc6e0497a70bfb1ffc83 /Userland/Libraries/LibWeb/Loader | |
parent | 2b866e3c9b0c6e230054edbbbe431cb1fbe3037e (diff) | |
download | serenity-7c57961c61aada999bf1dbc871708546b4fe1ba9.zip |
LibWeb: Move BrowsingContext into HTML/
Browsing contexts are defined by the HTML specification, so let's move
them into the HTML directory. :^)
Diffstat (limited to 'Userland/Libraries/LibWeb/Loader')
-rw-r--r-- | Userland/Libraries/LibWeb/Loader/FrameLoader.cpp | 4 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/Loader/FrameLoader.h | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp b/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp index 50d9d8075b..60d8a7be45 100644 --- a/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp +++ b/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp @@ -13,18 +13,18 @@ #include <LibWeb/DOM/Document.h> #include <LibWeb/DOM/ElementFactory.h> #include <LibWeb/DOM/Text.h> +#include <LibWeb/HTML/BrowsingContext.h> #include <LibWeb/HTML/HTMLIFrameElement.h> #include <LibWeb/HTML/Parser/HTMLParser.h> #include <LibWeb/Loader/FrameLoader.h> #include <LibWeb/Loader/ResourceLoader.h> -#include <LibWeb/Page/BrowsingContext.h> #include <LibWeb/Page/Page.h> namespace Web { static RefPtr<Gfx::Bitmap> s_default_favicon_bitmap; -FrameLoader::FrameLoader(BrowsingContext& browsing_context) +FrameLoader::FrameLoader(HTML::BrowsingContext& browsing_context) : m_browsing_context(browsing_context) { if (!s_default_favicon_bitmap) { diff --git a/Userland/Libraries/LibWeb/Loader/FrameLoader.h b/Userland/Libraries/LibWeb/Loader/FrameLoader.h index 277e5a9ab4..1e80d6f72e 100644 --- a/Userland/Libraries/LibWeb/Loader/FrameLoader.h +++ b/Userland/Libraries/LibWeb/Loader/FrameLoader.h @@ -23,7 +23,7 @@ public: IFrame, }; - explicit FrameLoader(BrowsingContext&); + explicit FrameLoader(HTML::BrowsingContext&); ~FrameLoader(); bool load(const AK::URL&, Type); @@ -31,8 +31,8 @@ public: void load_html(StringView, const AK::URL&); - BrowsingContext& browsing_context() { return m_browsing_context; } - const BrowsingContext& browsing_context() const { return m_browsing_context; } + HTML::BrowsingContext& browsing_context() { return m_browsing_context; } + HTML::BrowsingContext const& browsing_context() const { return m_browsing_context; } private: // ^ResourceClient @@ -43,7 +43,7 @@ private: void load_favicon(RefPtr<Gfx::Bitmap> bitmap = nullptr); bool parse_document(DOM::Document&, const ByteBuffer& data); - BrowsingContext& m_browsing_context; + HTML::BrowsingContext& m_browsing_context; size_t m_redirects_count { 0 }; }; |