summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/Scripting/Script.h
diff options
context:
space:
mode:
authorLuke Wilde <lukew@serenityos.org>2022-06-27 19:50:40 +0100
committerLinus Groh <mail@linusgroh.de>2022-06-29 21:21:50 +0100
commit17a26853e14b20c700aba187da5d56786f03a6a7 (patch)
treeb0d5c069f9ae18abb92eae5d92a1747cf35ccd63 /Userland/Libraries/LibWeb/HTML/Scripting/Script.h
parent885c6b6678a450f82b7becee3198b7ef350df3de (diff)
downloadserenity-17a26853e14b20c700aba187da5d56786f03a6a7.zip
LibWeb: Move ClassicScript::m_settings_object into the Script base
All Scripts have an associated settings object. https://html.spec.whatwg.org/multipage/webappapis.html#settings-object
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/Scripting/Script.h')
-rw-r--r--Userland/Libraries/LibWeb/HTML/Scripting/Script.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/Scripting/Script.h b/Userland/Libraries/LibWeb/HTML/Scripting/Script.h
index 36f5885717..f80c052cb1 100644
--- a/Userland/Libraries/LibWeb/HTML/Scripting/Script.h
+++ b/Userland/Libraries/LibWeb/HTML/Scripting/Script.h
@@ -8,6 +8,7 @@
#include <AK/RefCounted.h>
#include <AK/URL.h>
+#include <LibWeb/Forward.h>
namespace Web::HTML {
@@ -19,12 +20,15 @@ public:
AK::URL const& base_url() const { return m_base_url; }
String const& filename() const { return m_filename; }
+ EnvironmentSettingsObject& settings_object() { return m_settings_object; }
+
protected:
- Script(AK::URL base_url, String filename);
+ Script(AK::URL base_url, String filename, EnvironmentSettingsObject& environment_settings_object);
private:
AK::URL m_base_url;
String m_filename;
+ EnvironmentSettingsObject& m_settings_object;
};
}