LibWeb: Move Origin into the HTML namespace

Origin is defined in the HTML Standard, and therefore belongs into the
HTML directory and namespace in LibWeb.
https://html.spec.whatwg.org/multipage/origin.html#origin
This commit is contained in:
Linus Groh 2022-07-12 20:37:43 +01:00
commit 22a627fc1a
Notes: sideshowbarker 2024-07-17 08:59:11 +09:00
14 changed files with 23 additions and 21 deletions

View file

@ -28,6 +28,7 @@
#include <LibWeb/HTML/DocumentReadyState.h>
#include <LibWeb/HTML/HTMLScriptElement.h>
#include <LibWeb/HTML/History.h>
#include <LibWeb/HTML/Origin.h>
#include <LibWeb/HTML/Scripting/Environments.h>
namespace Web::DOM {
@ -82,8 +83,8 @@ public:
String url_string() const { return m_url.to_string(); }
String document_uri() const { return m_url.to_string(); }
Origin origin() const;
void set_origin(Origin const& origin);
HTML::Origin origin() const;
void set_origin(HTML::Origin const& origin);
AK::URL parse_url(String const&) const;