1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 06:38:10 +00:00

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
parent 1748362e05
commit 22a627fc1a
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;