mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-05 09:52:54 +00:00
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
This commit is contained in:
parent
885c6b6678
commit
17a26853e1
Notes:
sideshowbarker
2024-07-17 09:52:26 +09:00
Author: https://github.com/Lubrsi
Commit: 17a26853e1
Pull-request: https://github.com/SerenityOS/serenity/pull/14406
Reviewed-by: https://github.com/linusg
4 changed files with 17 additions and 15 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue