mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 22:49:47 +00:00
LibWeb: Enable EXPLICIT_SYMBOL_EXPORT
This commit is contained in:
parent
94a3a7d9a1
commit
3df8e00d91
Notes:
github-actions[bot]
2025-08-23 22:05:58 +00:00
Author: https://github.com/ayeteadoe
Commit: 3df8e00d91
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5229
Reviewed-by: https://github.com/ADKaster ✅
256 changed files with 728 additions and 512 deletions
|
@ -11,6 +11,7 @@
|
|||
#include <LibJS/Forward.h>
|
||||
#include <LibURL/Origin.h>
|
||||
#include <LibURL/URL.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Fetch/Infrastructure/FetchRecord.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
#include <LibWeb/HTML/EventLoop/EventLoop.h>
|
||||
|
@ -21,7 +22,7 @@
|
|||
namespace Web::HTML {
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/webappapis.html#environment
|
||||
struct Environment : public JS::Cell {
|
||||
struct WEB_API Environment : public JS::Cell {
|
||||
GC_CELL(Environment, JS::Cell);
|
||||
|
||||
public:
|
||||
|
@ -73,7 +74,7 @@ enum class RunScriptDecision {
|
|||
};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/webappapis.html#environment-settings-object
|
||||
struct EnvironmentSettingsObject : public Environment {
|
||||
struct WEB_API EnvironmentSettingsObject : public Environment {
|
||||
GC_CELL(EnvironmentSettingsObject, Environment);
|
||||
|
||||
public:
|
||||
|
@ -179,38 +180,38 @@ bool is_scripting_enabled(JS::Realm const&);
|
|||
bool is_scripting_disabled(JS::Realm const&);
|
||||
void prepare_to_run_script(JS::Realm&);
|
||||
void clean_up_after_running_script(JS::Realm const&);
|
||||
void prepare_to_run_callback(JS::Realm&);
|
||||
void clean_up_after_running_callback(JS::Realm const&);
|
||||
ModuleMap& module_map_of_realm(JS::Realm&);
|
||||
bool module_type_allowed(JS::Realm const&, StringView module_type);
|
||||
WEB_API void prepare_to_run_callback(JS::Realm&);
|
||||
WEB_API void clean_up_after_running_callback(JS::Realm const&);
|
||||
WEB_API ModuleMap& module_map_of_realm(JS::Realm&);
|
||||
WEB_API bool module_type_allowed(JS::Realm const&, StringView module_type);
|
||||
|
||||
void add_module_to_resolved_module_set(JS::Realm&, String const& serialized_base_url, String const& normalized_specifier, Optional<URL::URL> const& as_url);
|
||||
WEB_API void add_module_to_resolved_module_set(JS::Realm&, String const& serialized_base_url, String const& normalized_specifier, Optional<URL::URL> const& as_url);
|
||||
|
||||
EnvironmentSettingsObject& incumbent_settings_object();
|
||||
JS::Realm& incumbent_realm();
|
||||
WEB_API JS::Realm& incumbent_realm();
|
||||
JS::Object& incumbent_global_object();
|
||||
|
||||
JS::Realm& current_principal_realm();
|
||||
EnvironmentSettingsObject& principal_realm_settings_object(JS::Realm&);
|
||||
EnvironmentSettingsObject& current_principal_settings_object();
|
||||
|
||||
JS::Realm& principal_realm(GC::Ref<JS::Realm>);
|
||||
JS::Object& current_principal_global_object();
|
||||
WEB_API JS::Realm& principal_realm(GC::Ref<JS::Realm>);
|
||||
WEB_API JS::Object& current_principal_global_object();
|
||||
|
||||
JS::Realm& relevant_realm(JS::Object const&);
|
||||
WEB_API JS::Realm& relevant_realm(JS::Object const&);
|
||||
JS::Realm& relevant_principal_realm(JS::Object const&);
|
||||
|
||||
EnvironmentSettingsObject& relevant_settings_object(JS::Object const&);
|
||||
WEB_API EnvironmentSettingsObject& relevant_settings_object(JS::Object const&);
|
||||
EnvironmentSettingsObject& relevant_settings_object(DOM::Node const&);
|
||||
EnvironmentSettingsObject& relevant_principal_settings_object(JS::Object const&);
|
||||
WEB_API EnvironmentSettingsObject& relevant_principal_settings_object(JS::Object const&);
|
||||
|
||||
JS::Object& relevant_global_object(JS::Object const&);
|
||||
JS::Object& relevant_principal_global_object(JS::Object const&);
|
||||
WEB_API JS::Object& relevant_global_object(JS::Object const&);
|
||||
WEB_API JS::Object& relevant_principal_global_object(JS::Object const&);
|
||||
|
||||
JS::Realm& entry_realm();
|
||||
EnvironmentSettingsObject& entry_settings_object();
|
||||
JS::Object& entry_global_object();
|
||||
[[nodiscard]] bool is_secure_context(Environment const&);
|
||||
[[nodiscard]] WEB_API bool is_secure_context(Environment const&);
|
||||
[[nodiscard]] bool is_non_secure_context(Environment const&);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue