diff --git a/Userland/Libraries/LibWeb/CSS/Parser/ParsingContext.cpp b/Userland/Libraries/LibWeb/CSS/Parser/ParsingContext.cpp index e3e6f897df4..0448abdb4c3 100644 --- a/Userland/Libraries/LibWeb/CSS/Parser/ParsingContext.cpp +++ b/Userland/Libraries/LibWeb/CSS/Parser/ParsingContext.cpp @@ -19,6 +19,13 @@ ParsingContext::ParsingContext(JS::Realm& realm, Mode mode) { } +ParsingContext::ParsingContext(JS::Realm& realm, URL::URL url, Mode mode) + : m_realm(realm) + , m_url(move(url)) + , m_mode(mode) +{ +} + ParsingContext::ParsingContext(DOM::Document const& document, URL::URL url, Mode mode) : m_realm(const_cast(document.realm())) , m_document(&document) diff --git a/Userland/Libraries/LibWeb/CSS/Parser/ParsingContext.h b/Userland/Libraries/LibWeb/CSS/Parser/ParsingContext.h index becc800257f..d2c6b90c1b6 100644 --- a/Userland/Libraries/LibWeb/CSS/Parser/ParsingContext.h +++ b/Userland/Libraries/LibWeb/CSS/Parser/ParsingContext.h @@ -20,6 +20,7 @@ public: }; explicit ParsingContext(JS::Realm&, Mode = Mode::Normal); + explicit ParsingContext(JS::Realm&, URL::URL, Mode = Mode::Normal); explicit ParsingContext(DOM::Document const&, Mode = Mode::Normal); explicit ParsingContext(DOM::Document const&, URL::URL, Mode = Mode::Normal); explicit ParsingContext(DOM::ParentNode&, Mode = Mode::Normal);