mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-18 07:22:22 +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 <LibWeb/ARIA/AriaData.h>
|
||||
#include <LibWeb/ARIA/AttributeNames.h>
|
||||
#include <LibWeb/ARIA/Roles.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/WebIDL/ExceptionOr.h>
|
||||
|
||||
namespace Web::ARIA {
|
||||
|
@ -27,7 +28,7 @@ namespace Web::ARIA {
|
|||
__ENUMERATE_ARIA_ATTRIBUTE(aria_labelled_by_elements, aria_labelled_by) \
|
||||
__ENUMERATE_ARIA_ATTRIBUTE(aria_owns_elements, aria_owns)
|
||||
|
||||
class ARIAMixin {
|
||||
class WEB_API ARIAMixin {
|
||||
public:
|
||||
virtual ~ARIAMixin();
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
#include <AK/Forward.h>
|
||||
#include <AK/StringView.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::ARIA {
|
||||
|
||||
|
@ -121,7 +122,7 @@ enum class Role {
|
|||
#undef __ENUMERATE_ARIA_ROLE
|
||||
};
|
||||
|
||||
StringView role_name(Role);
|
||||
WEB_API StringView role_name(Role);
|
||||
Optional<Role> role_from_string(StringView role_name);
|
||||
|
||||
bool is_abstract_role(Role);
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#include <AK/FlyString.h>
|
||||
#include <AK/HashMap.h>
|
||||
#include <LibWeb/Animations/KeyframeEffect.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
||||
|
@ -33,7 +34,7 @@ struct GetAnimationsOptions {
|
|||
};
|
||||
|
||||
// https://drafts.csswg.org/web-animations-1/#animatable
|
||||
class Animatable {
|
||||
class WEB_API Animatable {
|
||||
public:
|
||||
struct TransitionAttributes {
|
||||
double delay;
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
#include <LibJS/Forward.h>
|
||||
#include <LibJS/Heap/Cell.h>
|
||||
#include <LibJS/Runtime/VM.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
#define WEB_SET_PROTOTYPE_FOR_INTERFACE_WITH_CUSTOM_NAME(interface_class, interface_name) \
|
||||
do { \
|
||||
|
@ -84,7 +85,7 @@ private:
|
|||
GC::Ref<JS::Realm> m_realm;
|
||||
};
|
||||
|
||||
Intrinsics& host_defined_intrinsics(JS::Realm& realm);
|
||||
WEB_API Intrinsics& host_defined_intrinsics(JS::Realm& realm);
|
||||
|
||||
template<typename T>
|
||||
[[nodiscard]] JS::Object& ensure_web_namespace(JS::Realm& realm, FlyString const& namespace_name)
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
#include <LibWeb/Bindings/AgentType.h>
|
||||
#include <LibWeb/DOM/Element.h>
|
||||
#include <LibWeb/DOM/MutationObserver.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/HTML/EventLoop/EventLoop.h>
|
||||
#include <LibWeb/HTML/Scripting/Agent.h>
|
||||
|
||||
|
@ -33,11 +34,11 @@ struct WebEngineCustomJobCallbackData final : public JS::JobCallback::CustomData
|
|||
|
||||
HTML::Script* active_script();
|
||||
|
||||
void initialize_main_thread_vm(AgentType);
|
||||
JS::VM& main_thread_vm();
|
||||
WEB_API void initialize_main_thread_vm(AgentType);
|
||||
WEB_API JS::VM& main_thread_vm();
|
||||
|
||||
void queue_mutation_observer_microtask(DOM::Document const&);
|
||||
NonnullOwnPtr<JS::ExecutionContext> create_a_new_javascript_realm(JS::VM&, Function<JS::Object*(JS::Realm&)> create_global_object, Function<JS::Object*(JS::Realm&)> create_global_this_value);
|
||||
void invoke_custom_element_reactions(Vector<GC::Root<DOM::Element>>& element_queue);
|
||||
WEB_API NonnullOwnPtr<JS::ExecutionContext> create_a_new_javascript_realm(JS::VM&, Function<JS::Object*(JS::Realm&)> create_global_object, Function<JS::Object*(JS::Realm&)> create_global_this_value);
|
||||
WEB_API void invoke_custom_element_reactions(Vector<GC::Root<DOM::Element>>& element_queue);
|
||||
|
||||
}
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
#include <AK/Weakable.h>
|
||||
#include <LibJS/Runtime/Object.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
|
||||
namespace Web::Bindings {
|
||||
|
@ -22,7 +23,7 @@ namespace Web::Bindings {
|
|||
}
|
||||
|
||||
// https://webidl.spec.whatwg.org/#dfn-platform-object
|
||||
class PlatformObject : public JS::Object {
|
||||
class WEB_API PlatformObject : public JS::Object {
|
||||
JS_OBJECT(PlatformObject, JS::Object);
|
||||
|
||||
public:
|
||||
|
|
|
@ -1066,7 +1066,7 @@ set(GENERATED_SOURCES
|
|||
HTML/Parser/NamedCharacterReferences.cpp
|
||||
)
|
||||
|
||||
ladybird_lib(LibWeb web)
|
||||
ladybird_lib(LibWeb web EXPLICIT_SYMBOL_EXPORT)
|
||||
|
||||
target_link_libraries(LibWeb PRIVATE LibCore LibCompress LibCrypto LibJS LibHTTP LibGfx LibIPC LibRegex LibSyntax LibTextCodec LibUnicode LibMedia LibWasm LibXML LibIDL LibURL LibTLS LibRequests LibGC LibThreading skia ${ANGLE_TARGETS})
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include <AK/String.h>
|
||||
#include <AK/StringView.h>
|
||||
#include <LibJS/Forward.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/WebIDL/ExceptionOr.h>
|
||||
#include <LibWeb/WebIDL/Types.h>
|
||||
|
||||
|
@ -23,12 +24,12 @@ struct PropertyDefinition {
|
|||
Optional<String> initial_value;
|
||||
};
|
||||
|
||||
WebIDL::ExceptionOr<String> escape(JS::VM&, StringView identifier);
|
||||
WEB_API WebIDL::ExceptionOr<String> escape(JS::VM&, StringView identifier);
|
||||
|
||||
bool supports(JS::VM&, StringView property, StringView value);
|
||||
WebIDL::ExceptionOr<bool> supports(JS::VM&, StringView condition_text);
|
||||
WEB_API bool supports(JS::VM&, StringView property, StringView value);
|
||||
WEB_API WebIDL::ExceptionOr<bool> supports(JS::VM&, StringView condition_text);
|
||||
|
||||
WebIDL::ExceptionOr<void> register_property(JS::VM&, PropertyDefinition definition);
|
||||
WEB_API WebIDL::ExceptionOr<void> register_property(JS::VM&, PropertyDefinition definition);
|
||||
|
||||
GC::Ref<CSSUnitValue> number(JS::VM&, WebIDL::Double value);
|
||||
GC::Ref<CSSUnitValue> percent(JS::VM&, WebIDL::Double value);
|
||||
|
|
|
@ -12,10 +12,11 @@
|
|||
#include <LibWeb/CSS/CSSStyleSheet.h>
|
||||
#include <LibWeb/CSS/URL.h>
|
||||
#include <LibWeb/DOM/DocumentLoadEventDelayer.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
||||
class CSSImportRule final
|
||||
class WEB_API CSSImportRule final
|
||||
: public CSSRule {
|
||||
WEB_PLATFORM_OBJECT(CSSImportRule, CSSRule);
|
||||
GC_DECLARE_ALLOCATOR(CSSImportRule);
|
||||
|
|
|
@ -12,11 +12,12 @@
|
|||
#include <LibWeb/Bindings/PlatformObject.h>
|
||||
#include <LibWeb/CSS/CSSStyleDeclaration.h>
|
||||
#include <LibWeb/CSS/Selector.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/WebIDL/Types.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
||||
class CSSRule : public Bindings::PlatformObject {
|
||||
class WEB_API CSSRule : public Bindings::PlatformObject {
|
||||
WEB_PLATFORM_OBJECT(CSSRule, Bindings::PlatformObject);
|
||||
|
||||
public:
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#include <LibWeb/Bindings/PlatformObject.h>
|
||||
#include <LibWeb/CSS/CSSRule.h>
|
||||
#include <LibWeb/CSS/Parser/RuleContext.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
#include <LibWeb/TraversalOrder.h>
|
||||
#include <LibWeb/WebIDL/ExceptionOr.h>
|
||||
|
@ -19,7 +20,7 @@
|
|||
namespace Web::CSS {
|
||||
|
||||
// https://www.w3.org/TR/cssom/#the-cssrulelist-interface
|
||||
class CSSRuleList : public Bindings::PlatformObject {
|
||||
class WEB_API CSSRuleList : public Bindings::PlatformObject {
|
||||
WEB_PLATFORM_OBJECT(CSSRuleList, Bindings::PlatformObject);
|
||||
GC_DECLARE_ALLOCATOR(CSSRuleList);
|
||||
|
||||
|
|
|
@ -10,11 +10,12 @@
|
|||
#include <LibWeb/CSS/CSSStyleDeclaration.h>
|
||||
#include <LibWeb/CSS/GeneratedCSSStyleProperties.h>
|
||||
#include <LibWeb/DOM/Node.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
||||
// https://drafts.csswg.org/cssom/#cssstyleproperties
|
||||
class CSSStyleProperties
|
||||
class WEB_API CSSStyleProperties
|
||||
: public CSSStyleDeclaration
|
||||
, public Bindings::GeneratedCSSStyleProperties {
|
||||
WEB_PLATFORM_OBJECT(CSSStyleProperties, CSSStyleDeclaration);
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#include <LibWeb/CSS/Parser/Parser.h>
|
||||
#include <LibWeb/CSS/StyleSheet.h>
|
||||
#include <LibWeb/DOM/Node.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/WebIDL/Types.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
@ -29,7 +30,7 @@ struct CSSStyleSheetInit {
|
|||
};
|
||||
|
||||
// https://drafts.csswg.org/cssom-1/#cssstylesheet
|
||||
class CSSStyleSheet final : public StyleSheet {
|
||||
class WEB_API CSSStyleSheet final : public StyleSheet {
|
||||
WEB_PLATFORM_OBJECT(CSSStyleSheet, StyleSheet);
|
||||
GC_DECLARE_ALLOCATOR(CSSStyleSheet);
|
||||
|
||||
|
|
|
@ -21,10 +21,11 @@
|
|||
#include <LibWeb/CSS/PseudoClass.h>
|
||||
#include <LibWeb/CSS/PseudoClassBitmap.h>
|
||||
#include <LibWeb/CSS/StyleProperty.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
||||
class ComputedProperties final : public JS::Cell {
|
||||
class WEB_API ComputedProperties final : public JS::Cell {
|
||||
GC_CELL(ComputedProperties, JS::Cell);
|
||||
GC_DECLARE_ALLOCATOR(ComputedProperties);
|
||||
|
||||
|
|
|
@ -11,10 +11,11 @@
|
|||
|
||||
#include <LibGfx/Rect.h>
|
||||
#include <LibWeb/CSS/Length.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
||||
struct EdgeRect {
|
||||
struct WEB_API EdgeRect {
|
||||
Length top_edge;
|
||||
Length right_edge;
|
||||
Length bottom_edge;
|
||||
|
|
|
@ -11,12 +11,13 @@
|
|||
#include <LibGfx/Forward.h>
|
||||
#include <LibGfx/Rect.h>
|
||||
#include <LibWeb/CSS/SerializationMode.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
#include <LibWeb/PixelUnits.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
||||
class Length {
|
||||
class WEB_API Length {
|
||||
public:
|
||||
enum class Type : u8 {
|
||||
// Font-relative
|
||||
|
|
|
@ -12,11 +12,12 @@
|
|||
#include <AK/RefPtr.h>
|
||||
#include <LibWeb/CSS/Parser/Token.h>
|
||||
#include <LibWeb/CSS/Parser/Types.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::CSS::Parser {
|
||||
|
||||
// https://drafts.csswg.org/css-syntax/#component-value
|
||||
class ComponentValue {
|
||||
class WEB_API ComponentValue {
|
||||
AK_MAKE_DEFAULT_COPYABLE(ComponentValue);
|
||||
AK_MAKE_DEFAULT_MOVABLE(ComponentValue);
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
#include <AK/FlyString.h>
|
||||
#include <AK/HashMap.h>
|
||||
#include <AK/String.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::CSS::Parser {
|
||||
|
||||
|
@ -125,7 +126,7 @@ using ParsingError = Variant<UnknownPropertyError, UnknownRuleError, UnknownMedi
|
|||
|
||||
String serialize_parsing_error(ParsingError const&);
|
||||
|
||||
class ErrorReporter {
|
||||
class WEB_API ErrorReporter {
|
||||
public:
|
||||
static ErrorReporter& the();
|
||||
|
||||
|
|
|
@ -11,10 +11,11 @@
|
|||
#include <AK/OwnPtr.h>
|
||||
#include <AK/String.h>
|
||||
#include <LibWeb/CSS/PropertyID.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::CSS::Parser {
|
||||
|
||||
class SyntaxNode {
|
||||
class WEB_API SyntaxNode {
|
||||
public:
|
||||
enum class NodeType : u8 {
|
||||
Universal,
|
||||
|
|
|
@ -9,11 +9,12 @@
|
|||
#include <AK/OwnPtr.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <LibWeb/DOM/AbstractElement.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
|
||||
namespace Web::CSS::Parser {
|
||||
|
||||
OwnPtr<SyntaxNode> parse_as_syntax(Vector<ComponentValue> const&);
|
||||
WEB_API OwnPtr<SyntaxNode> parse_as_syntax(Vector<ComponentValue> const&);
|
||||
|
||||
NonnullRefPtr<StyleValue const> parse_with_a_syntax(ParsingParams const&, Vector<ComponentValue> const& input, SyntaxNode const& syntax, Optional<DOM::AbstractElement> const& element = {});
|
||||
|
||||
|
|
|
@ -9,11 +9,12 @@
|
|||
|
||||
#include <AK/FlyString.h>
|
||||
#include <LibWeb/CSS/Number.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
|
||||
namespace Web::CSS::Parser {
|
||||
|
||||
class Token {
|
||||
class WEB_API Token {
|
||||
public:
|
||||
enum class Type : u8 {
|
||||
Invalid,
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#include <AK/Types.h>
|
||||
#include <AK/Utf8View.h>
|
||||
#include <LibWeb/CSS/Parser/Token.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
|
||||
namespace Web::CSS::Parser {
|
||||
|
@ -57,7 +58,7 @@ public:
|
|||
u32 third {};
|
||||
};
|
||||
|
||||
class Tokenizer {
|
||||
class WEB_API Tokenizer {
|
||||
public:
|
||||
static Vector<Token> tokenize(StringView input, StringView encoding);
|
||||
|
||||
|
|
|
@ -13,14 +13,15 @@
|
|||
#include <LibGfx/Color.h>
|
||||
#include <LibGfx/Font/UnicodeRange.h>
|
||||
#include <LibWeb/CSS/StyleProperty.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
||||
void escape_a_character(StringBuilder&, u32 character);
|
||||
void escape_a_character_as_code_point(StringBuilder&, u32 character);
|
||||
void serialize_an_identifier(StringBuilder&, StringView ident);
|
||||
WEB_API void serialize_an_identifier(StringBuilder&, StringView ident);
|
||||
void serialize_a_string(StringBuilder&, StringView string);
|
||||
void serialize_a_url(StringBuilder&, StringView url);
|
||||
WEB_API void serialize_a_url(StringBuilder&, StringView url);
|
||||
void serialize_unicode_ranges(StringBuilder&, Vector<Gfx::UnicodeRange> const& unicode_ranges);
|
||||
void serialize_a_srgb_value(StringBuilder&, Color color);
|
||||
void serialize_a_number(StringBuilder&, double value);
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#include <LibWeb/CSS/CascadedProperties.h>
|
||||
#include <LibWeb/CSS/Selector.h>
|
||||
#include <LibWeb/CSS/StyleInvalidationData.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
#include <LibWeb/Loader/ResourceLoader.h>
|
||||
|
||||
|
@ -126,7 +127,7 @@ struct RuleCache {
|
|||
|
||||
class FontLoader;
|
||||
|
||||
class StyleComputer final : public GC::Cell {
|
||||
class WEB_API StyleComputer final : public GC::Cell {
|
||||
GC_CELL(StyleComputer, GC::Cell);
|
||||
GC_DECLARE_ALLOCATOR(StyleComputer);
|
||||
|
||||
|
|
|
@ -9,12 +9,13 @@
|
|||
|
||||
#include <LibWeb/Bindings/PlatformObject.h>
|
||||
#include <LibWeb/CSS/MediaList.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
||||
// https://drafts.csswg.org/cssom-1/#the-stylesheet-interface
|
||||
class StyleSheet : public Bindings::PlatformObject {
|
||||
class WEB_API StyleSheet : public Bindings::PlatformObject {
|
||||
WEB_PLATFORM_OBJECT(StyleSheet, Bindings::PlatformObject);
|
||||
|
||||
public:
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
#include <LibIPC/Forward.h>
|
||||
#include <LibURL/URL.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
@ -35,9 +36,9 @@ Optional<StyleSheetIdentifier::Type> style_sheet_identifier_type_from_string(Str
|
|||
namespace IPC {
|
||||
|
||||
template<>
|
||||
ErrorOr<void> encode(Encoder&, Web::CSS::StyleSheetIdentifier const&);
|
||||
WEB_API ErrorOr<void> encode(Encoder&, Web::CSS::StyleSheetIdentifier const&);
|
||||
|
||||
template<>
|
||||
ErrorOr<Web::CSS::StyleSheetIdentifier> decode(Decoder&);
|
||||
WEB_API ErrorOr<Web::CSS::StyleSheetIdentifier> decode(Decoder&);
|
||||
|
||||
}
|
||||
|
|
|
@ -10,10 +10,11 @@
|
|||
|
||||
#include <LibWeb/Bindings/PlatformObject.h>
|
||||
#include <LibWeb/CSS/CSSStyleSheet.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
||||
class StyleSheetList final : public Bindings::PlatformObject {
|
||||
class WEB_API StyleSheetList final : public Bindings::PlatformObject {
|
||||
WEB_PLATFORM_OBJECT(StyleSheetList, Bindings::PlatformObject);
|
||||
GC_DECLARE_ALLOCATOR(StyleSheetList);
|
||||
|
||||
|
|
|
@ -8,10 +8,11 @@
|
|||
|
||||
#include <LibWeb/CSS/Display.h>
|
||||
#include <LibWeb/CSS/StyleValues/StyleValue.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
||||
class DisplayStyleValue : public StyleValueWithDefaultOperators<DisplayStyleValue> {
|
||||
class WEB_API DisplayStyleValue : public StyleValueWithDefaultOperators<DisplayStyleValue> {
|
||||
public:
|
||||
static ValueComparingNonnullRefPtr<DisplayStyleValue const> create(Display const&);
|
||||
virtual ~DisplayStyleValue() override = default;
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#include <LibWeb/CSS/CalculatedOr.h>
|
||||
#include <LibWeb/CSS/StyleValues/StyleValue.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
||||
|
@ -88,7 +89,7 @@ public:
|
|||
String to_string(SerializationMode) const;
|
||||
};
|
||||
|
||||
struct Function : public Variant<Linear, CubicBezier, Steps> {
|
||||
struct WEB_API Function : public Variant<Linear, CubicBezier, Steps> {
|
||||
using Variant::Variant;
|
||||
|
||||
double evaluate_at(double input_progress, bool before_flag) const;
|
||||
|
|
|
@ -11,10 +11,11 @@
|
|||
|
||||
#include <LibWeb/CSS/Length.h>
|
||||
#include <LibWeb/CSS/StyleValues/DimensionStyleValue.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
||||
class LengthStyleValue final : public DimensionStyleValue {
|
||||
class WEB_API LengthStyleValue final : public DimensionStyleValue {
|
||||
public:
|
||||
static ValueComparingNonnullRefPtr<LengthStyleValue const> create(Length const&);
|
||||
virtual ~LengthStyleValue() override = default;
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include <LibWeb/CSS/Length.h>
|
||||
#include <LibWeb/CSS/PreferredColorScheme.h>
|
||||
#include <LibWeb/CSS/SerializationMode.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
@ -153,7 +154,7 @@ struct ColorResolutionContext {
|
|||
[[nodiscard]] static ColorResolutionContext for_layout_node_with_style(Layout::NodeWithStyle const&);
|
||||
};
|
||||
|
||||
class StyleValue : public RefCounted<StyleValue> {
|
||||
class WEB_API StyleValue : public RefCounted<StyleValue> {
|
||||
public:
|
||||
virtual ~StyleValue() = default;
|
||||
|
||||
|
|
|
@ -11,11 +11,12 @@
|
|||
#include <AK/RefCounted.h>
|
||||
#include <AK/String.h>
|
||||
#include <LibWeb/CSS/BooleanExpression.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
||||
// https://www.w3.org/TR/css-conditional-3/#at-supports
|
||||
class Supports final : public RefCounted<Supports> {
|
||||
class WEB_API Supports final : public RefCounted<Supports> {
|
||||
public:
|
||||
class Declaration final : public BooleanExpression {
|
||||
public:
|
||||
|
|
|
@ -7,10 +7,11 @@
|
|||
#pragma once
|
||||
|
||||
#include <LibSyntax/Highlighter.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
||||
class SyntaxHighlighter : public Syntax::Highlighter {
|
||||
class WEB_API SyntaxHighlighter : public Syntax::Highlighter {
|
||||
public:
|
||||
SyntaxHighlighter() = default;
|
||||
virtual ~SyntaxHighlighter() override = default;
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
#include <LibGfx/Color.h>
|
||||
#include <LibWeb/CSS/PreferredColorScheme.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
// https://www.w3.org/TR/css-color-4/#css-system-colors
|
||||
namespace Web::CSS::SystemColor {
|
||||
|
@ -23,8 +24,8 @@ Color canvas_text(PreferredColorScheme);
|
|||
Color field(PreferredColorScheme);
|
||||
Color field_text(PreferredColorScheme);
|
||||
Color gray_text(PreferredColorScheme);
|
||||
Color highlight(PreferredColorScheme);
|
||||
Color highlight_text(PreferredColorScheme);
|
||||
WEB_API Color highlight(PreferredColorScheme);
|
||||
WEB_API Color highlight_text(PreferredColorScheme);
|
||||
Color link_text(PreferredColorScheme);
|
||||
Color mark(PreferredColorScheme);
|
||||
Color mark_text(PreferredColorScheme);
|
||||
|
|
|
@ -12,12 +12,13 @@
|
|||
#include <LibWeb/CSS/Length.h>
|
||||
#include <LibWeb/CSS/PercentageOr.h>
|
||||
#include <LibWeb/CSS/TransformFunctions.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
||||
using TransformValue = Variant<AngleOrCalculated, LengthPercentage, NumberPercentage>;
|
||||
|
||||
class Transformation {
|
||||
class WEB_API Transformation {
|
||||
public:
|
||||
Transformation(TransformFunction function, Vector<TransformValue>&& values);
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#include <AK/Vector.h>
|
||||
#include <LibGC/Ptr.h>
|
||||
#include <LibWeb/CSS/Enums.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
||||
|
@ -42,7 +43,7 @@ private:
|
|||
};
|
||||
|
||||
// https://drafts.csswg.org/css-values-4/#urls
|
||||
class URL {
|
||||
class WEB_API URL {
|
||||
public:
|
||||
enum class Type : u8 {
|
||||
Url,
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include <AK/String.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <LibIPC/Forward.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::Clipboard {
|
||||
|
||||
|
@ -29,15 +30,15 @@ struct SystemClipboardItem {
|
|||
namespace IPC {
|
||||
|
||||
template<>
|
||||
ErrorOr<void> encode(Encoder&, Web::Clipboard::SystemClipboardRepresentation const&);
|
||||
WEB_API ErrorOr<void> encode(Encoder&, Web::Clipboard::SystemClipboardRepresentation const&);
|
||||
|
||||
template<>
|
||||
ErrorOr<Web::Clipboard::SystemClipboardRepresentation> decode(Decoder&);
|
||||
WEB_API ErrorOr<Web::Clipboard::SystemClipboardRepresentation> decode(Decoder&);
|
||||
|
||||
template<>
|
||||
ErrorOr<void> encode(Encoder&, Web::Clipboard::SystemClipboardItem const&);
|
||||
WEB_API ErrorOr<void> encode(Encoder&, Web::Clipboard::SystemClipboardItem const&);
|
||||
|
||||
template<>
|
||||
ErrorOr<Web::Clipboard::SystemClipboardItem> decode(Decoder&);
|
||||
WEB_API ErrorOr<Web::Clipboard::SystemClipboardItem> decode(Decoder&);
|
||||
|
||||
}
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include <AK/Time.h>
|
||||
#include <LibIPC/Forward.h>
|
||||
#include <LibURL/URL.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::Cookie {
|
||||
|
||||
|
@ -25,7 +26,7 @@ enum class Source {
|
|||
Http,
|
||||
};
|
||||
|
||||
struct Cookie {
|
||||
struct WEB_API Cookie {
|
||||
String creation_time_to_string() const;
|
||||
String last_access_time_to_string() const;
|
||||
String expiry_time_to_string() const;
|
||||
|
@ -44,20 +45,20 @@ struct Cookie {
|
|||
bool persistent { false };
|
||||
};
|
||||
|
||||
StringView same_site_to_string(SameSite same_site_mode);
|
||||
SameSite same_site_from_string(StringView same_site_mode);
|
||||
WEB_API StringView same_site_to_string(SameSite same_site_mode);
|
||||
WEB_API SameSite same_site_from_string(StringView same_site_mode);
|
||||
|
||||
Optional<String> canonicalize_domain(const URL::URL& url);
|
||||
bool path_matches(StringView request_path, StringView cookie_path);
|
||||
WEB_API Optional<String> canonicalize_domain(const URL::URL& url);
|
||||
WEB_API bool path_matches(StringView request_path, StringView cookie_path);
|
||||
|
||||
}
|
||||
|
||||
namespace IPC {
|
||||
|
||||
template<>
|
||||
ErrorOr<void> encode(Encoder&, Web::Cookie::Cookie const&);
|
||||
WEB_API ErrorOr<void> encode(Encoder&, Web::Cookie::Cookie const&);
|
||||
|
||||
template<>
|
||||
ErrorOr<Web::Cookie::Cookie> decode(Decoder&);
|
||||
WEB_API ErrorOr<Web::Cookie::Cookie> decode(Decoder&);
|
||||
|
||||
}
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#include <LibIPC/Forward.h>
|
||||
#include <LibURL/Forward.h>
|
||||
#include <LibWeb/Cookie/Cookie.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::Cookie {
|
||||
|
||||
|
@ -28,18 +29,18 @@ struct ParsedCookie {
|
|||
};
|
||||
|
||||
Optional<ParsedCookie> parse_cookie(URL::URL const&, StringView cookie_string);
|
||||
bool cookie_contains_invalid_control_character(StringView);
|
||||
bool domain_matches(StringView string, StringView domain_string);
|
||||
String default_path(URL::URL const&);
|
||||
WEB_API bool cookie_contains_invalid_control_character(StringView);
|
||||
WEB_API bool domain_matches(StringView string, StringView domain_string);
|
||||
WEB_API String default_path(URL::URL const&);
|
||||
|
||||
}
|
||||
|
||||
namespace IPC {
|
||||
|
||||
template<>
|
||||
ErrorOr<void> encode(Encoder&, Web::Cookie::ParsedCookie const&);
|
||||
WEB_API ErrorOr<void> encode(Encoder&, Web::Cookie::ParsedCookie const&);
|
||||
|
||||
template<>
|
||||
ErrorOr<Web::Cookie::ParsedCookie> decode(Decoder&);
|
||||
WEB_API ErrorOr<Web::Cookie::ParsedCookie> decode(Decoder&);
|
||||
|
||||
}
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include <AK/String.h>
|
||||
#include <LibWeb/Bindings/CookieStorePrototype.h>
|
||||
#include <LibWeb/DOM/EventTarget.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/HighResolutionTime/DOMHighResTimeStamp.h>
|
||||
|
||||
namespace Web::CookieStore {
|
||||
|
@ -46,7 +47,7 @@ struct CookieStoreDeleteOptions {
|
|||
};
|
||||
|
||||
// https://cookiestore.spec.whatwg.org/#cookiestore
|
||||
class CookieStore final : public DOM::EventTarget {
|
||||
class WEB_API CookieStore final : public DOM::EventTarget {
|
||||
WEB_PLATFORM_OBJECT(CookieStore, DOM::EventTarget);
|
||||
GC_DECLARE_ALLOCATOR(CookieStore);
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
#include <LibWeb/Bindings/PlatformObject.h>
|
||||
#include <LibWeb/Crypto/SubtleCrypto.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/WebIDL/ExceptionOr.h>
|
||||
|
||||
namespace Web::Crypto {
|
||||
|
@ -36,6 +37,6 @@ private:
|
|||
GC::Ptr<SubtleCrypto> m_subtle;
|
||||
};
|
||||
|
||||
ErrorOr<String> generate_random_uuid();
|
||||
WEB_API ErrorOr<String> generate_random_uuid();
|
||||
|
||||
}
|
||||
|
|
|
@ -6,11 +6,12 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
#include <LibWeb/WebIDL/ObservableArray.h>
|
||||
|
||||
namespace Web::DOM {
|
||||
|
||||
GC::Ref<WebIDL::ObservableArray> create_adopted_style_sheets_list(Node& document_or_shadow_root);
|
||||
WEB_API GC::Ref<WebIDL::ObservableArray> create_adopted_style_sheets_list(Node& document_or_shadow_root);
|
||||
|
||||
}
|
||||
|
|
|
@ -9,11 +9,12 @@
|
|||
#include <AK/WeakPtr.h>
|
||||
#include <LibWeb/DOM/Node.h>
|
||||
#include <LibWeb/DOM/QualifiedName.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::DOM {
|
||||
|
||||
// https://dom.spec.whatwg.org/#attr
|
||||
class Attr final : public Node {
|
||||
class WEB_API Attr final : public Node {
|
||||
WEB_PLATFORM_OBJECT(Attr, Node);
|
||||
GC_DECLARE_ALLOCATOR(Attr);
|
||||
|
||||
|
|
|
@ -12,11 +12,12 @@
|
|||
#include <LibWeb/DOM/ChildNode.h>
|
||||
#include <LibWeb/DOM/Node.h>
|
||||
#include <LibWeb/DOM/NonDocumentTypeChildNode.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::DOM {
|
||||
|
||||
// https://dom.spec.whatwg.org/#characterdata
|
||||
class CharacterData
|
||||
class WEB_API CharacterData
|
||||
: public Node
|
||||
, public ChildNode<CharacterData>
|
||||
, public NonDocumentTypeChildNode<CharacterData> {
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
|
||||
#include <AK/FlyString.h>
|
||||
#include <LibWeb/DOM/Event.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::DOM {
|
||||
|
||||
|
@ -17,7 +18,7 @@ struct CustomEventInit : public EventInit {
|
|||
};
|
||||
|
||||
// https://dom.spec.whatwg.org/#customevent
|
||||
class CustomEvent : public Event {
|
||||
class WEB_API CustomEvent : public Event {
|
||||
WEB_PLATFORM_OBJECT(CustomEvent, Event);
|
||||
GC_DECLARE_ALLOCATOR(CustomEvent);
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
#include <LibWeb/Cookie/Cookie.h>
|
||||
#include <LibWeb/DOM/ParentNode.h>
|
||||
#include <LibWeb/DOM/ShadowRoot.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/HTML/BrowsingContext.h>
|
||||
#include <LibWeb/HTML/CrossOrigin/OpenerPolicy.h>
|
||||
#include <LibWeb/HTML/DocumentReadyState.h>
|
||||
|
@ -161,7 +162,7 @@ enum class PolicyControlledFeature : u8 {
|
|||
FocusWithoutUserActivation,
|
||||
};
|
||||
|
||||
class Document
|
||||
class WEB_API Document
|
||||
: public ParentNode
|
||||
, public HTML::GlobalEventHandlers {
|
||||
WEB_PLATFORM_OBJECT(Document, ParentNode);
|
||||
|
|
|
@ -8,10 +8,11 @@
|
|||
|
||||
#include <LibWeb/DOM/Element.h>
|
||||
#include <LibWeb/DOM/ParentNode.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::DOM {
|
||||
|
||||
class DocumentFragment
|
||||
class WEB_API DocumentFragment
|
||||
: public ParentNode {
|
||||
WEB_PLATFORM_OBJECT(DocumentFragment, ParentNode);
|
||||
GC_DECLARE_ALLOCATOR(DocumentFragment);
|
||||
|
|
|
@ -9,13 +9,14 @@
|
|||
#include <LibGC/Function.h>
|
||||
#include <LibJS/Forward.h>
|
||||
#include <LibWeb/Bindings/PlatformObject.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
#include <LibWeb/HTML/DocumentReadyState.h>
|
||||
#include <LibWeb/HTML/VisibilityState.h>
|
||||
|
||||
namespace Web::DOM {
|
||||
|
||||
class DocumentObserver final : public Bindings::PlatformObject {
|
||||
class WEB_API DocumentObserver final : public Bindings::PlatformObject {
|
||||
WEB_PLATFORM_OBJECT(DocumentObserver, Bindings::PlatformObject);
|
||||
GC_DECLARE_ALLOCATOR(DocumentObserver);
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include <LibWeb/DOM/PseudoElement.h>
|
||||
#include <LibWeb/DOM/QualifiedName.h>
|
||||
#include <LibWeb/DOM/Slottable.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/HTML/AttributeNames.h>
|
||||
#include <LibWeb/HTML/EventLoop/Task.h>
|
||||
#include <LibWeb/HTML/LazyLoadingElement.h>
|
||||
|
@ -100,7 +101,7 @@ enum class ProximityToTheViewport {
|
|||
NotDetermined,
|
||||
};
|
||||
|
||||
class Element
|
||||
class WEB_API Element
|
||||
: public ParentNode
|
||||
, public ChildNode<Element>
|
||||
, public NonDocumentTypeChildNode<Element>
|
||||
|
|
|
@ -8,13 +8,14 @@
|
|||
|
||||
#include <AK/FixedArray.h>
|
||||
#include <LibWeb/DOM/Element.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::DOM {
|
||||
|
||||
ErrorOr<FixedArray<FlyString>> valid_local_names_for_given_html_element_interface(StringView html_element_interface_name);
|
||||
WEB_API ErrorOr<FixedArray<FlyString>> valid_local_names_for_given_html_element_interface(StringView html_element_interface_name);
|
||||
bool is_unknown_html_element(FlyString const& tag_name);
|
||||
|
||||
// FIXME: The spec doesn't say what the default value of synchronous_custom_elements_flag should be.
|
||||
WebIDL::ExceptionOr<GC::Ref<Element>> create_element(Document&, FlyString local_name, Optional<FlyString> namespace_, Optional<FlyString> prefix = {}, Optional<String> is = Optional<String> {}, bool synchronous_custom_elements_flag = false);
|
||||
WEB_API WebIDL::ExceptionOr<GC::Ref<Element>> create_element(Document&, FlyString local_name, Optional<FlyString> namespace_, Optional<FlyString> prefix = {}, Optional<String> is = Optional<String> {}, bool synchronous_custom_elements_flag = false);
|
||||
|
||||
}
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
#include <AK/FlyString.h>
|
||||
#include <LibWeb/Bindings/PlatformObject.h>
|
||||
#include <LibWeb/DOM/EventTarget.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/HighResolutionTime/DOMHighResTimeStamp.h>
|
||||
|
||||
namespace Web::DOM {
|
||||
|
@ -19,7 +20,7 @@ struct EventInit {
|
|||
bool composed { false };
|
||||
};
|
||||
|
||||
class Event : public Bindings::PlatformObject {
|
||||
class WEB_API Event : public Bindings::PlatformObject {
|
||||
WEB_PLATFORM_OBJECT(Event, Bindings::PlatformObject);
|
||||
GC_DECLARE_ALLOCATOR(Event);
|
||||
|
||||
|
|
|
@ -11,13 +11,14 @@
|
|||
#include <LibJS/Forward.h>
|
||||
#include <LibWeb/Bindings/PlatformObject.h>
|
||||
#include <LibWeb/DOM/DOMEventListener.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
#include <LibWeb/HTML/EventHandler.h>
|
||||
#include <LibWeb/WebIDL/ExceptionOr.h>
|
||||
|
||||
namespace Web::DOM {
|
||||
|
||||
class EventTarget : public Bindings::PlatformObject {
|
||||
class WEB_API EventTarget : public Bindings::PlatformObject {
|
||||
WEB_PLATFORM_OBJECT(EventTarget, Bindings::PlatformObject);
|
||||
GC_DECLARE_ALLOCATOR(EventTarget);
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/FlyString.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::DOM::MutationType {
|
||||
|
||||
|
@ -15,7 +16,7 @@ namespace Web::DOM::MutationType {
|
|||
__ENUMERATE_MUTATION_TYPE(characterData) \
|
||||
__ENUMERATE_MUTATION_TYPE(childList)
|
||||
|
||||
#define __ENUMERATE_MUTATION_TYPE(name) extern FlyString name;
|
||||
#define __ENUMERATE_MUTATION_TYPE(name) extern WEB_API FlyString name;
|
||||
ENUMERATE_MUTATION_TYPES
|
||||
#undef __ENUMERATE_MUTATION_TYPE
|
||||
|
||||
|
|
|
@ -10,13 +10,14 @@
|
|||
#pragma once
|
||||
|
||||
#include <LibWeb/Bindings/PlatformObject.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
#include <LibWeb/WebIDL/ExceptionOr.h>
|
||||
|
||||
namespace Web::DOM {
|
||||
|
||||
// https://dom.spec.whatwg.org/#interface-namednodemap
|
||||
class NamedNodeMap : public Bindings::PlatformObject {
|
||||
class WEB_API NamedNodeMap : public Bindings::PlatformObject {
|
||||
WEB_PLATFORM_OBJECT(NamedNodeMap, Bindings::PlatformObject);
|
||||
GC_DECLARE_ALLOCATOR(NamedNodeMap);
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
#include <LibWeb/DOM/EventTarget.h>
|
||||
#include <LibWeb/DOM/NodeType.h>
|
||||
#include <LibWeb/DOM/Slottable.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/HTML/XMLSerializer.h>
|
||||
#include <LibWeb/TraversalDecision.h>
|
||||
#include <LibWeb/TreeNode.h>
|
||||
|
@ -138,7 +139,7 @@ enum class SetNeedsLayoutTreeUpdateReason {
|
|||
|
||||
[[nodiscard]] StringView to_string(SetNeedsLayoutTreeUpdateReason);
|
||||
|
||||
class Node : public EventTarget
|
||||
class WEB_API Node : public EventTarget
|
||||
, public TreeNode<Node> {
|
||||
WEB_PLATFORM_OBJECT(Node, EventTarget);
|
||||
|
||||
|
|
|
@ -8,11 +8,12 @@
|
|||
#pragma once
|
||||
|
||||
#include <LibWeb/Bindings/PlatformObject.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::DOM {
|
||||
|
||||
// https://dom.spec.whatwg.org/#nodelist
|
||||
class NodeList : public Bindings::PlatformObject {
|
||||
class WEB_API NodeList : public Bindings::PlatformObject {
|
||||
WEB_PLATFORM_OBJECT(NodeList, Bindings::PlatformObject);
|
||||
|
||||
public:
|
||||
|
|
|
@ -7,10 +7,11 @@
|
|||
#pragma once
|
||||
|
||||
#include <LibWeb/DOM/Node.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::DOM {
|
||||
|
||||
class ParentNode : public Node {
|
||||
class WEB_API ParentNode : public Node {
|
||||
WEB_PLATFORM_OBJECT(ParentNode, Node);
|
||||
GC_DECLARE_ALLOCATOR(ParentNode);
|
||||
|
||||
|
|
|
@ -10,13 +10,14 @@
|
|||
#include <LibGC/CellAllocator.h>
|
||||
#include <LibJS/Heap/Cell.h>
|
||||
#include <LibWeb/CSS/StyleProperty.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
#include <LibWeb/PixelUnits.h>
|
||||
#include <LibWeb/TreeNode.h>
|
||||
|
||||
namespace Web::DOM {
|
||||
|
||||
class PseudoElement : public JS::Cell {
|
||||
class WEB_API PseudoElement : public JS::Cell {
|
||||
GC_CELL(PseudoElement, JS::Cell);
|
||||
GC_DECLARE_ALLOCATOR(PseudoElement);
|
||||
|
||||
|
|
|
@ -10,10 +10,11 @@
|
|||
|
||||
#include <AK/FlyString.h>
|
||||
#include <AK/Optional.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::DOM {
|
||||
|
||||
class QualifiedName {
|
||||
class WEB_API QualifiedName {
|
||||
public:
|
||||
QualifiedName(FlyString const& local_name, Optional<FlyString> const& prefix, Optional<FlyString> const& namespace_);
|
||||
|
||||
|
@ -25,7 +26,7 @@ public:
|
|||
|
||||
FlyString const& as_string() const { return m_impl->as_string; }
|
||||
|
||||
struct Impl : public RefCounted<Impl> {
|
||||
struct WEB_API Impl : public RefCounted<Impl> {
|
||||
Impl(FlyString const& local_name, Optional<FlyString> const& prefix, Optional<FlyString> const& namespace_);
|
||||
~Impl();
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
|
||||
#include <LibWeb/DOM/AbstractRange.h>
|
||||
#include <LibWeb/DOM/Node.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Selection/Selection.h>
|
||||
#include <LibWeb/WebIDL/Types.h>
|
||||
|
||||
|
@ -25,7 +26,7 @@ enum class RelativeBoundaryPointPosition {
|
|||
// https://dom.spec.whatwg.org/#concept-range-bp-position
|
||||
RelativeBoundaryPointPosition position_of_boundary_point_relative_to_other_boundary_point(BoundaryPoint a, BoundaryPoint b);
|
||||
|
||||
class Range final : public AbstractRange {
|
||||
class WEB_API Range final : public AbstractRange {
|
||||
WEB_PLATFORM_OBJECT(Range, AbstractRange);
|
||||
GC_DECLARE_ALLOCATOR(Range);
|
||||
|
||||
|
|
|
@ -9,11 +9,12 @@
|
|||
#include <LibWeb/Bindings/ShadowRootPrototype.h>
|
||||
#include <LibWeb/DOM/DocumentFragment.h>
|
||||
#include <LibWeb/DOM/ElementByIdMap.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/WebIDL/ObservableArray.h>
|
||||
|
||||
namespace Web::DOM {
|
||||
|
||||
class ShadowRoot final : public DocumentFragment {
|
||||
class WEB_API ShadowRoot final : public DocumentFragment {
|
||||
WEB_PLATFORM_OBJECT(ShadowRoot, DocumentFragment);
|
||||
GC_DECLARE_ALLOCATOR(ShadowRoot);
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include <AK/Variant.h>
|
||||
#include <LibGC/Ptr.h>
|
||||
#include <LibJS/Heap/Cell.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
|
||||
namespace Web::DOM {
|
||||
|
@ -18,7 +19,7 @@ namespace Web::DOM {
|
|||
using Slottable = Variant<GC::Ref<Element>, GC::Ref<Text>>;
|
||||
|
||||
// https://dom.spec.whatwg.org/#mixin-slotable
|
||||
class SlottableMixin {
|
||||
class WEB_API SlottableMixin {
|
||||
public:
|
||||
virtual ~SlottableMixin();
|
||||
|
||||
|
|
|
@ -10,10 +10,11 @@
|
|||
#include <LibWeb/DOM/CharacterData.h>
|
||||
#include <LibWeb/DOM/Element.h>
|
||||
#include <LibWeb/DOM/Slottable.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::DOM {
|
||||
|
||||
class Text
|
||||
class WEB_API Text
|
||||
: public CharacterData
|
||||
, public SlottableMixin {
|
||||
WEB_PLATFORM_OBJECT(Text, CharacterData);
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#include <LibURL/URL.h>
|
||||
#include <LibWeb/Bindings/PlatformObject.h>
|
||||
#include <LibWeb/DOMURL/URLSearchParams.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/FileAPI/BlobURLStore.h>
|
||||
#include <LibWeb/WebIDL/ExceptionOr.h>
|
||||
|
||||
|
@ -93,6 +94,6 @@ private:
|
|||
};
|
||||
|
||||
// https://url.spec.whatwg.org/#concept-url-parser
|
||||
Optional<URL::URL> parse(StringView input, Optional<URL::URL const&> base_url = {}, Optional<StringView> encoding = {});
|
||||
WEB_API Optional<URL::URL> parse(StringView input, Optional<URL::URL const&> base_url = {}, Optional<StringView> encoding = {});
|
||||
|
||||
}
|
||||
|
|
|
@ -8,19 +8,20 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/Forward.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
|
||||
namespace Web {
|
||||
|
||||
void dump_tree(HTML::TraversableNavigable&);
|
||||
WEB_API void dump_tree(HTML::TraversableNavigable&);
|
||||
void dump_tree(StringBuilder&, DOM::Node const&);
|
||||
void dump_tree(DOM::Node const&);
|
||||
void dump_tree(StringBuilder&, Layout::Node const&, bool show_box_model = false, bool show_cascaded_properties = false, bool colorize = false);
|
||||
void dump_tree(Layout::Node const&, bool show_box_model = true, bool show_cascaded_properties = false);
|
||||
void dump_tree(StringBuilder&, Painting::Paintable const&, bool colorize = false, int indent = 0);
|
||||
void dump_tree(Painting::Paintable const&);
|
||||
WEB_API void dump_tree(DOM::Node const&);
|
||||
WEB_API void dump_tree(StringBuilder&, Layout::Node const&, bool show_box_model = false, bool show_cascaded_properties = false, bool colorize = false);
|
||||
WEB_API void dump_tree(Layout::Node const&, bool show_box_model = true, bool show_cascaded_properties = false);
|
||||
WEB_API void dump_tree(StringBuilder&, Painting::Paintable const&, bool colorize = false, int indent = 0);
|
||||
WEB_API void dump_tree(Painting::Paintable const&);
|
||||
void dump_sheet(StringBuilder&, CSS::StyleSheet const&);
|
||||
void dump_sheet(CSS::StyleSheet const&);
|
||||
WEB_API void dump_sheet(CSS::StyleSheet const&);
|
||||
void dump_rule(StringBuilder&, CSS::CSSRule const&, int indent_levels = 0);
|
||||
void dump_rule(CSS::CSSRule const&);
|
||||
void dump_style_properties(StringBuilder&, CSS::CSSStyleProperties const&, int indent_levels = 0);
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
#include <AK/Forward.h>
|
||||
#include <AK/Variant.h>
|
||||
#include <LibJS/Forward.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
|
||||
namespace Web::Fetch {
|
||||
|
@ -17,7 +18,7 @@ namespace Web::Fetch {
|
|||
using BodyInit = Variant<GC::Root<Streams::ReadableStream>, GC::Root<FileAPI::Blob>, GC::Root<WebIDL::BufferSource>, GC::Root<XHR::FormData>, GC::Root<DOMURL::URLSearchParams>, String>;
|
||||
|
||||
using BodyInitOrReadableBytes = Variant<GC::Root<Streams::ReadableStream>, GC::Root<FileAPI::Blob>, GC::Root<WebIDL::BufferSource>, GC::Root<XHR::FormData>, GC::Root<DOMURL::URLSearchParams>, String, ReadonlyBytes>;
|
||||
Infrastructure::BodyWithType safely_extract_body(JS::Realm&, BodyInitOrReadableBytes const&);
|
||||
WebIDL::ExceptionOr<Infrastructure::BodyWithType> extract_body(JS::Realm&, BodyInitOrReadableBytes const&, bool keepalive = false);
|
||||
WEB_API Infrastructure::BodyWithType safely_extract_body(JS::Realm&, BodyInitOrReadableBytes const&);
|
||||
WEB_API WebIDL::ExceptionOr<Infrastructure::BodyWithType> extract_body(JS::Realm&, BodyInitOrReadableBytes const&, bool keepalive = false);
|
||||
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/Forward.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Fetch/Infrastructure/HTTP/Requests.h>
|
||||
#include <LibWeb/Fetch/Infrastructure/HTTP/Responses.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
|
@ -15,7 +16,7 @@ namespace Web::Fetch {
|
|||
|
||||
[[nodiscard]] ReferrerPolicy::ReferrerPolicy from_bindings_enum(Bindings::ReferrerPolicy);
|
||||
[[nodiscard]] Infrastructure::Request::Mode from_bindings_enum(Bindings::RequestMode);
|
||||
[[nodiscard]] Infrastructure::Request::CredentialsMode from_bindings_enum(Bindings::RequestCredentials);
|
||||
[[nodiscard]] WEB_API Infrastructure::Request::CredentialsMode from_bindings_enum(Bindings::RequestCredentials);
|
||||
[[nodiscard]] Infrastructure::Request::CacheMode from_bindings_enum(Bindings::RequestCache);
|
||||
[[nodiscard]] Infrastructure::Request::RedirectMode from_bindings_enum(Bindings::RequestRedirect);
|
||||
[[nodiscard]] Infrastructure::Request::Priority from_bindings_enum(Bindings::RequestPriority);
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include <AK/Forward.h>
|
||||
#include <LibGC/Ptr.h>
|
||||
#include <LibJS/Forward.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
|
||||
namespace Web::Fetch::Fetching {
|
||||
|
@ -38,7 +39,7 @@ constexpr auto keepalive_maximum_size = 64 * KiB;
|
|||
ENUMERATE_BOOL_PARAMS
|
||||
#undef __ENUMERATE_BOOL_PARAM
|
||||
|
||||
WebIDL::ExceptionOr<GC::Ref<Infrastructure::FetchController>> fetch(JS::Realm&, Infrastructure::Request&, Infrastructure::FetchAlgorithms const&, UseParallelQueue use_parallel_queue = UseParallelQueue::No);
|
||||
WEB_API WebIDL::ExceptionOr<GC::Ref<Infrastructure::FetchController>> fetch(JS::Realm&, Infrastructure::Request&, Infrastructure::FetchAlgorithms const&, UseParallelQueue use_parallel_queue = UseParallelQueue::No);
|
||||
WebIDL::ExceptionOr<GC::Ptr<PendingResponse>> main_fetch(JS::Realm&, Infrastructure::FetchParams const&, Recursive recursive = Recursive::No);
|
||||
void populate_request_from_client(JS::Realm const&, Infrastructure::Request&);
|
||||
void fetch_response_handover(JS::Realm&, Infrastructure::FetchParams const&, Infrastructure::Response&);
|
||||
|
@ -54,6 +55,6 @@ void set_sec_fetch_site_header(Infrastructure::Request&);
|
|||
void set_sec_fetch_user_header(Infrastructure::Request&);
|
||||
void append_fetch_metadata_headers_for_request(Infrastructure::Request&);
|
||||
|
||||
void set_http_cache_enabled(bool enabled);
|
||||
WEB_API void set_http_cache_enabled(bool enabled);
|
||||
|
||||
}
|
||||
|
|
|
@ -10,12 +10,13 @@
|
|||
#include <LibGC/Function.h>
|
||||
#include <LibGC/Ptr.h>
|
||||
#include <LibJS/Heap/Cell.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
|
||||
namespace Web::Fetch::Infrastructure {
|
||||
|
||||
// https://fetch.spec.whatwg.org/#fetch-elsewhere-fetch
|
||||
class FetchAlgorithms : public JS::Cell {
|
||||
class WEB_API FetchAlgorithms : public JS::Cell {
|
||||
GC_CELL(FetchAlgorithms, JS::Cell);
|
||||
GC_DECLARE_ALLOCATOR(FetchAlgorithms);
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
#include <LibJS/Forward.h>
|
||||
#include <LibJS/Heap/Cell.h>
|
||||
#include <LibJS/Runtime/VM.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Fetch/Infrastructure/FetchTimingInfo.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
#include <LibWeb/HTML/EventLoop/Task.h>
|
||||
|
@ -21,7 +22,7 @@
|
|||
namespace Web::Fetch::Infrastructure {
|
||||
|
||||
// https://fetch.spec.whatwg.org/#fetch-controller
|
||||
class FetchController : public JS::Cell {
|
||||
class WEB_API FetchController : public JS::Cell {
|
||||
GC_CELL(FetchController, JS::Cell);
|
||||
GC_DECLARE_ALLOCATOR(FetchController);
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include <LibGC/Ptr.h>
|
||||
#include <LibJS/Forward.h>
|
||||
#include <LibJS/Heap/Cell.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Fetch/Infrastructure/FetchAlgorithms.h>
|
||||
#include <LibWeb/Fetch/Infrastructure/FetchController.h>
|
||||
#include <LibWeb/Fetch/Infrastructure/FetchTimingInfo.h>
|
||||
|
@ -19,7 +20,7 @@
|
|||
namespace Web::Fetch::Infrastructure {
|
||||
|
||||
// https://fetch.spec.whatwg.org/#fetch-params
|
||||
class FetchParams : public JS::Cell {
|
||||
class WEB_API FetchParams : public JS::Cell {
|
||||
GC_CELL(FetchParams, JS::Cell);
|
||||
GC_DECLARE_ALLOCATOR(FetchParams);
|
||||
|
||||
|
|
|
@ -6,12 +6,13 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Fetch/Infrastructure/FetchController.h>
|
||||
|
||||
namespace Web::Fetch::Infrastructure {
|
||||
|
||||
// https://fetch.spec.whatwg.org/#concept-fetch-record
|
||||
class FetchRecord final : public JS::Cell {
|
||||
class WEB_API FetchRecord final : public JS::Cell {
|
||||
GC_CELL(FetchRecord, JS::Cell);
|
||||
GC_DECLARE_ALLOCATOR(FetchRecord);
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
#include <LibJS/Forward.h>
|
||||
#include <LibJS/Heap/Cell.h>
|
||||
#include <LibRequests/Forward.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Fetch/Infrastructure/ConnectionTimingInfo.h>
|
||||
#include <LibWeb/HTML/Scripting/SerializedEnvironmentSettingsObject.h>
|
||||
#include <LibWeb/HighResolutionTime/DOMHighResTimeStamp.h>
|
||||
|
@ -20,7 +21,7 @@
|
|||
namespace Web::Fetch::Infrastructure {
|
||||
|
||||
// https://fetch.spec.whatwg.org/#fetch-timing-info
|
||||
class FetchTimingInfo : public JS::Cell {
|
||||
class WEB_API FetchTimingInfo : public JS::Cell {
|
||||
GC_CELL(FetchTimingInfo, JS::Cell);
|
||||
GC_DECLARE_ALLOCATOR(FetchTimingInfo);
|
||||
|
||||
|
@ -132,6 +133,6 @@ private:
|
|||
bool m_render_blocking { false };
|
||||
};
|
||||
|
||||
GC::Ref<FetchTimingInfo> create_opaque_timing_info(JS::VM&, FetchTimingInfo const& timing_info);
|
||||
WEB_API GC::Ref<FetchTimingInfo> create_opaque_timing_info(JS::VM&, FetchTimingInfo const& timing_info);
|
||||
|
||||
}
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
|
||||
#include <AK/Forward.h>
|
||||
#include <AK/StringView.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::Fetch::Infrastructure {
|
||||
|
||||
|
@ -53,6 +54,6 @@ enum class RedirectTaint {
|
|||
CrossSite,
|
||||
};
|
||||
|
||||
[[nodiscard]] String collect_an_http_quoted_string(GenericLexer& lexer, HttpQuotedStringExtractValue extract_value = HttpQuotedStringExtractValue::No);
|
||||
[[nodiscard]] WEB_API String collect_an_http_quoted_string(GenericLexer& lexer, HttpQuotedStringExtractValue extract_value = HttpQuotedStringExtractValue::No);
|
||||
|
||||
}
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
#include <AK/Variant.h>
|
||||
#include <LibGC/Ptr.h>
|
||||
#include <LibGC/Root.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Fetch/Infrastructure/Task.h>
|
||||
#include <LibWeb/FileAPI/Blob.h>
|
||||
#include <LibWeb/Streams/ReadableStream.h>
|
||||
|
@ -21,7 +22,7 @@
|
|||
namespace Web::Fetch::Infrastructure {
|
||||
|
||||
// https://fetch.spec.whatwg.org/#concept-body
|
||||
class Body final : public JS::Cell {
|
||||
class WEB_API Body final : public JS::Cell {
|
||||
GC_CELL(Body, JS::Cell);
|
||||
GC_DECLARE_ALLOCATOR(Body);
|
||||
|
||||
|
@ -76,6 +77,6 @@ struct BodyWithType {
|
|||
Optional<ByteBuffer> type;
|
||||
};
|
||||
|
||||
GC::Ref<Body> byte_sequence_as_body(JS::Realm&, ReadonlyBytes);
|
||||
WEB_API GC::Ref<Body> byte_sequence_as_body(JS::Realm&, ReadonlyBytes);
|
||||
|
||||
}
|
||||
|
|
|
@ -17,13 +17,14 @@
|
|||
#include <LibGC/Ptr.h>
|
||||
#include <LibJS/Forward.h>
|
||||
#include <LibJS/Heap/Cell.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/MimeSniff/MimeType.h>
|
||||
|
||||
namespace Web::Fetch::Infrastructure {
|
||||
|
||||
// https://fetch.spec.whatwg.org/#concept-header
|
||||
// A header is a tuple that consists of a name (a header name) and value (a header value).
|
||||
struct Header {
|
||||
struct WEB_API Header {
|
||||
ByteBuffer name;
|
||||
ByteBuffer value;
|
||||
|
||||
|
@ -34,7 +35,7 @@ struct Header {
|
|||
|
||||
// https://fetch.spec.whatwg.org/#concept-header-list
|
||||
// A header list is a list of zero or more headers. It is initially the empty list.
|
||||
class HeaderList final
|
||||
class WEB_API HeaderList final
|
||||
: public JS::Cell
|
||||
, public Vector<Header> {
|
||||
GC_CELL(HeaderList, JS::Cell);
|
||||
|
@ -75,7 +76,7 @@ struct RangeHeaderValue {
|
|||
struct ExtractHeaderParseFailure {
|
||||
};
|
||||
|
||||
[[nodiscard]] StringView legacy_extract_an_encoding(Optional<MimeSniff::MimeType> const& mime_type, StringView fallback_encoding);
|
||||
[[nodiscard]] WEB_API StringView legacy_extract_an_encoding(Optional<MimeSniff::MimeType> const& mime_type, StringView fallback_encoding);
|
||||
[[nodiscard]] Optional<Vector<String>> get_decode_and_split_header_value(ReadonlyBytes);
|
||||
[[nodiscard]] OrderedHashTable<ByteBuffer> convert_header_names_to_a_sorted_lowercase_set(Span<ReadonlyBytes>);
|
||||
[[nodiscard]] bool is_header_name(ReadonlyBytes);
|
||||
|
@ -83,8 +84,8 @@ struct ExtractHeaderParseFailure {
|
|||
[[nodiscard]] ByteBuffer normalize_header_value(ReadonlyBytes);
|
||||
[[nodiscard]] bool is_cors_safelisted_request_header(Header const&);
|
||||
[[nodiscard]] bool is_cors_unsafe_request_header_byte(u8);
|
||||
[[nodiscard]] OrderedHashTable<ByteBuffer> get_cors_unsafe_header_names(HeaderList const&);
|
||||
[[nodiscard]] bool is_cors_non_wildcard_request_header_name(ReadonlyBytes);
|
||||
[[nodiscard]] WEB_API OrderedHashTable<ByteBuffer> get_cors_unsafe_header_names(HeaderList const&);
|
||||
[[nodiscard]] WEB_API bool is_cors_non_wildcard_request_header_name(ReadonlyBytes);
|
||||
[[nodiscard]] bool is_privileged_no_cors_request_header_name(ReadonlyBytes);
|
||||
[[nodiscard]] bool is_cors_safelisted_response_header_name(ReadonlyBytes, Span<ReadonlyBytes>);
|
||||
[[nodiscard]] bool is_no_cors_safelisted_request_header_name(ReadonlyBytes);
|
||||
|
@ -93,9 +94,9 @@ struct ExtractHeaderParseFailure {
|
|||
[[nodiscard]] bool is_forbidden_response_header_name(ReadonlyBytes);
|
||||
[[nodiscard]] bool is_request_body_header_name(ReadonlyBytes);
|
||||
[[nodiscard]] Optional<Vector<ByteBuffer>> extract_header_values(Header const&);
|
||||
[[nodiscard]] Variant<Vector<ByteBuffer>, ExtractHeaderParseFailure, Empty> extract_header_list_values(ReadonlyBytes, HeaderList const&);
|
||||
[[nodiscard]] ByteString build_content_range(u64 const& range_start, u64 const& range_end, u64 const& full_length);
|
||||
[[nodiscard]] Optional<RangeHeaderValue> parse_single_range_header_value(ReadonlyBytes, bool);
|
||||
[[nodiscard]] ByteBuffer default_user_agent_value();
|
||||
[[nodiscard]] WEB_API Variant<Vector<ByteBuffer>, ExtractHeaderParseFailure, Empty> extract_header_list_values(ReadonlyBytes, HeaderList const&);
|
||||
[[nodiscard]] WEB_API ByteString build_content_range(u64 const& range_start, u64 const& range_end, u64 const& full_length);
|
||||
[[nodiscard]] WEB_API Optional<RangeHeaderValue> parse_single_range_header_value(ReadonlyBytes, bool);
|
||||
[[nodiscard]] WEB_API ByteBuffer default_user_agent_value();
|
||||
|
||||
}
|
||||
|
|
|
@ -7,11 +7,12 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/Forward.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::Fetch::Infrastructure {
|
||||
|
||||
[[nodiscard]] bool is_method(ReadonlyBytes);
|
||||
[[nodiscard]] bool is_cors_safelisted_method(ReadonlyBytes);
|
||||
[[nodiscard]] WEB_API bool is_cors_safelisted_method(ReadonlyBytes);
|
||||
[[nodiscard]] bool is_forbidden_method(ReadonlyBytes);
|
||||
[[nodiscard]] ByteBuffer normalize_method(ReadonlyBytes);
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
#include <LibJS/Heap/Cell.h>
|
||||
#include <LibURL/Origin.h>
|
||||
#include <LibURL/URL.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Fetch/Infrastructure/HTTP.h>
|
||||
#include <LibWeb/Fetch/Infrastructure/HTTP/Bodies.h>
|
||||
#include <LibWeb/Fetch/Infrastructure/HTTP/Headers.h>
|
||||
|
@ -26,7 +27,7 @@
|
|||
namespace Web::Fetch::Infrastructure {
|
||||
|
||||
// https://fetch.spec.whatwg.org/#concept-request
|
||||
class Request final : public JS::Cell {
|
||||
class WEB_API Request final : public JS::Cell {
|
||||
GC_CELL(Request, JS::Cell);
|
||||
GC_DECLARE_ALLOCATOR(Request);
|
||||
|
||||
|
@ -535,9 +536,9 @@ private:
|
|||
BufferPolicy m_buffer_policy { BufferPolicy::BufferResponse };
|
||||
};
|
||||
|
||||
StringView request_destination_to_string(Request::Destination);
|
||||
StringView request_mode_to_string(Request::Mode);
|
||||
FlyString initiator_type_to_string(Request::InitiatorType);
|
||||
WEB_API StringView request_destination_to_string(Request::Destination);
|
||||
WEB_API StringView request_mode_to_string(Request::Mode);
|
||||
WEB_API FlyString initiator_type_to_string(Request::InitiatorType);
|
||||
|
||||
Optional<Request::Priority> request_priority_from_string(StringView);
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#include <LibJS/Forward.h>
|
||||
#include <LibJS/Heap/Cell.h>
|
||||
#include <LibURL/URL.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Fetch/Infrastructure/HTTP.h>
|
||||
#include <LibWeb/Fetch/Infrastructure/HTTP/Bodies.h>
|
||||
#include <LibWeb/Fetch/Infrastructure/HTTP/Headers.h>
|
||||
|
@ -24,7 +25,7 @@
|
|||
namespace Web::Fetch::Infrastructure {
|
||||
|
||||
// https://fetch.spec.whatwg.org/#concept-response
|
||||
class Response : public JS::Cell {
|
||||
class WEB_API Response : public JS::Cell {
|
||||
GC_CELL(Response, JS::Cell);
|
||||
GC_DECLARE_ALLOCATOR(Response);
|
||||
|
||||
|
@ -267,7 +268,7 @@ private:
|
|||
};
|
||||
|
||||
// https://fetch.spec.whatwg.org/#concept-filtered-response-basic
|
||||
class BasicFilteredResponse final : public FilteredResponse {
|
||||
class WEB_API BasicFilteredResponse final : public FilteredResponse {
|
||||
GC_CELL(BasicFilteredResponse, FilteredResponse);
|
||||
GC_DECLARE_ALLOCATOR(BasicFilteredResponse);
|
||||
|
||||
|
@ -286,7 +287,7 @@ private:
|
|||
};
|
||||
|
||||
// https://fetch.spec.whatwg.org/#concept-filtered-response-cors
|
||||
class CORSFilteredResponse final : public FilteredResponse {
|
||||
class WEB_API CORSFilteredResponse final : public FilteredResponse {
|
||||
GC_CELL(CORSFilteredResponse, FilteredResponse);
|
||||
GC_DECLARE_ALLOCATOR(CORSFilteredResponse);
|
||||
|
||||
|
@ -305,7 +306,7 @@ private:
|
|||
};
|
||||
|
||||
// https://fetch.spec.whatwg.org/#concept-filtered-response-opaque
|
||||
class OpaqueFilteredResponse final : public FilteredResponse {
|
||||
class WEB_API OpaqueFilteredResponse final : public FilteredResponse {
|
||||
GC_CELL(OpaqueFilteredResponse, FilteredResponse);
|
||||
GC_DECLARE_ALLOCATOR(OpaqueFilteredResponse);
|
||||
|
||||
|
@ -330,7 +331,7 @@ private:
|
|||
};
|
||||
|
||||
// https://fetch.spec.whatwg.org/#concept-filtered-response-opaque-redirect
|
||||
class OpaqueRedirectFilteredResponse final : public FilteredResponse {
|
||||
class WEB_API OpaqueRedirectFilteredResponse final : public FilteredResponse {
|
||||
GC_CELL(OpaqueRedirectFilteredResponse, FilteredResponse);
|
||||
GC_DECLARE_ALLOCATOR(OpaqueRedirectFilteredResponse);
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/Forward.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::Fetch::Infrastructure {
|
||||
|
||||
|
@ -14,8 +15,8 @@ namespace Web::Fetch::Infrastructure {
|
|||
// A status is an integer in the range 0 to 999, inclusive.
|
||||
using Status = u16;
|
||||
|
||||
[[nodiscard]] bool is_null_body_status(Status);
|
||||
[[nodiscard]] bool is_ok_status(Status);
|
||||
[[nodiscard]] bool is_redirect_status(Status);
|
||||
[[nodiscard]] WEB_API bool is_null_body_status(Status);
|
||||
[[nodiscard]] WEB_API bool is_ok_status(Status);
|
||||
[[nodiscard]] WEB_API bool is_redirect_status(Status);
|
||||
|
||||
}
|
||||
|
|
|
@ -6,11 +6,12 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Fetch/Infrastructure/RequestOrResponseBlocking.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
|
||||
namespace Web::Fetch::Infrastructure {
|
||||
|
||||
[[nodiscard]] RequestOrResponseBlocking should_response_to_request_be_blocked_due_to_its_mime_type(Response const&, Request const&);
|
||||
[[nodiscard]] WEB_API RequestOrResponseBlocking should_response_to_request_be_blocked_due_to_its_mime_type(Response const&, Request const&);
|
||||
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <LibURL/Origin.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
|
||||
namespace Web::Fetch::Infrastructure {
|
||||
|
@ -23,7 +24,7 @@ struct NetworkPartitionKey {
|
|||
|
||||
NetworkPartitionKey determine_the_network_partition_key(HTML::Environment const& environment);
|
||||
|
||||
Optional<NetworkPartitionKey> determine_the_network_partition_key(Infrastructure::Request const& request);
|
||||
WEB_API Optional<NetworkPartitionKey> determine_the_network_partition_key(Infrastructure::Request const& request);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -7,12 +7,13 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/Forward.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Fetch/Infrastructure/RequestOrResponseBlocking.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
|
||||
namespace Web::Fetch::Infrastructure {
|
||||
|
||||
[[nodiscard]] bool determine_nosniff(HeaderList const&);
|
||||
[[nodiscard]] RequestOrResponseBlocking should_response_to_request_be_blocked_due_to_nosniff(Response const&, Request const&);
|
||||
[[nodiscard]] WEB_API RequestOrResponseBlocking should_response_to_request_be_blocked_due_to_nosniff(Response const&, Request const&);
|
||||
|
||||
}
|
||||
|
|
|
@ -7,12 +7,13 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/Forward.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Fetch/Infrastructure/RequestOrResponseBlocking.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
|
||||
namespace Web::Fetch::Infrastructure {
|
||||
|
||||
[[nodiscard]] RequestOrResponseBlocking block_bad_port(Request const&);
|
||||
[[nodiscard]] WEB_API RequestOrResponseBlocking block_bad_port(Request const&);
|
||||
[[nodiscard]] bool is_bad_port(u16);
|
||||
|
||||
}
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
#include <AK/Variant.h>
|
||||
#include <LibGC/Ptr.h>
|
||||
#include <LibJS/Forward.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
#include <LibWeb/HTML/EventLoop/Task.h>
|
||||
|
||||
|
@ -17,6 +18,6 @@ namespace Web::Fetch::Infrastructure {
|
|||
using TaskDestination = Variant<Empty, GC::Ref<JS::Object>, NonnullRefPtr<HTML::ParallelQueue>>;
|
||||
|
||||
HTML::TaskID queue_fetch_task(TaskDestination, GC::Ref<GC::Function<void()>>);
|
||||
HTML::TaskID queue_fetch_task(GC::Ref<FetchController>, TaskDestination, GC::Ref<GC::Function<void()>>);
|
||||
WEB_API HTML::TaskID queue_fetch_task(GC::Ref<FetchController>, TaskDestination, GC::Ref<GC::Function<void()>>);
|
||||
|
||||
}
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
#include <AK/Base64.h>
|
||||
#include <LibURL/URL.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Fetch/Infrastructure/URL.h>
|
||||
#include <LibWeb/Infra/Strings.h>
|
||||
#include <LibWeb/MimeSniff/MimeType.h>
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
#include <AK/String.h>
|
||||
#include <AK/StringView.h>
|
||||
#include <LibURL/Forward.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/MimeSniff/MimeType.h>
|
||||
|
||||
namespace Web::Fetch::Infrastructure {
|
||||
|
@ -44,9 +45,9 @@ struct DataURL {
|
|||
ByteBuffer body;
|
||||
};
|
||||
|
||||
[[nodiscard]] bool is_local_url(URL::URL const&);
|
||||
[[nodiscard]] WEB_API bool is_local_url(URL::URL const&);
|
||||
[[nodiscard]] bool is_fetch_scheme(StringView);
|
||||
[[nodiscard]] bool is_http_or_https_scheme(StringView);
|
||||
ErrorOr<DataURL> process_data_url(URL::URL const&);
|
||||
[[nodiscard]] WEB_API bool is_http_or_https_scheme(StringView);
|
||||
WEB_API ErrorOr<DataURL> process_data_url(URL::URL const&);
|
||||
|
||||
}
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#include <LibWeb/Bindings/BlobPrototype.h>
|
||||
#include <LibWeb/Bindings/PlatformObject.h>
|
||||
#include <LibWeb/Bindings/Serializable.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
#include <LibWeb/WebIDL/ExceptionOr.h>
|
||||
|
||||
|
@ -27,7 +28,7 @@ struct BlobPropertyBag {
|
|||
[[nodiscard]] ErrorOr<ByteBuffer> process_blob_parts(Vector<BlobPart> const& blob_parts, Optional<BlobPropertyBag> const& options = {});
|
||||
[[nodiscard]] bool is_basic_latin(StringView view);
|
||||
|
||||
class Blob
|
||||
class WEB_API Blob
|
||||
: public Bindings::PlatformObject
|
||||
, public Bindings::Serializable {
|
||||
WEB_PLATFORM_OBJECT(Blob, Bindings::PlatformObject);
|
||||
|
|
|
@ -31,7 +31,7 @@ ErrorOr<Utf16String> generate_new_blob_url();
|
|||
ErrorOr<Utf16String> add_entry_to_blob_url_store(BlobURLEntry::Object);
|
||||
bool check_for_same_partition_blob_url_usage(URL::BlobURLEntry const&, GC::Ref<HTML::Environment>);
|
||||
struct NavigationEnvironment { };
|
||||
Optional<URL::BlobURLEntry::Object> obtain_a_blob_object(URL::BlobURLEntry const&, Variant<GC::Ref<HTML::Environment>, NavigationEnvironment> environment);
|
||||
WEB_API Optional<URL::BlobURLEntry::Object> obtain_a_blob_object(URL::BlobURLEntry const&, Variant<GC::Ref<HTML::Environment>, NavigationEnvironment> environment);
|
||||
void remove_entry_from_blob_url_store(URL::URL const& url);
|
||||
Optional<BlobURLEntry const&> resolve_a_blob_url(URL::URL const&);
|
||||
|
||||
|
|
|
@ -10,12 +10,13 @@
|
|||
#include <AK/Vector.h>
|
||||
#include <LibGC/Ptr.h>
|
||||
#include <LibWeb/Bindings/PlatformObject.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/FileAPI/File.h>
|
||||
#include <LibWeb/WebIDL/Types.h>
|
||||
|
||||
namespace Web::FileAPI {
|
||||
|
||||
class FileList
|
||||
class WEB_API FileList
|
||||
: public Bindings::PlatformObject
|
||||
, public Bindings::Serializable {
|
||||
WEB_PLATFORM_OBJECT(FileList, Bindings::PlatformObject);
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#include <LibGfx/Forward.h>
|
||||
#include <LibIPC/Forward.h>
|
||||
#include <LibJS/Forward.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web {
|
||||
|
||||
|
@ -1220,10 +1221,10 @@ struct FormDataEntry;
|
|||
namespace IPC {
|
||||
|
||||
template<>
|
||||
ErrorOr<void> encode(Encoder&, Web::UniqueNodeID const&);
|
||||
WEB_API ErrorOr<void> encode(Encoder&, Web::UniqueNodeID const&);
|
||||
|
||||
template<>
|
||||
ErrorOr<Web::UniqueNodeID> decode(Decoder&);
|
||||
WEB_API ErrorOr<Web::UniqueNodeID> decode(Decoder&);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -7,12 +7,13 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Geometry/DOMPointReadOnly.h>
|
||||
|
||||
namespace Web::Geometry {
|
||||
|
||||
// https://drafts.fxtf.org/geometry/#DOMPoint
|
||||
class DOMPoint final : public DOMPointReadOnly {
|
||||
class WEB_API DOMPoint final : public DOMPointReadOnly {
|
||||
WEB_PLATFORM_OBJECT(DOMPoint, DOMPointReadOnly);
|
||||
GC_DECLARE_ALLOCATOR(DOMPoint);
|
||||
|
||||
|
|
|
@ -12,11 +12,12 @@
|
|||
#include <LibGC/Function.h>
|
||||
#include <LibGC/Ptr.h>
|
||||
#include <LibJS/Heap/Cell.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/WebIDL/Types.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
class AnimationFrameCallbackDriver final : public JS::Cell {
|
||||
class WEB_API AnimationFrameCallbackDriver final : public JS::Cell {
|
||||
GC_CELL(AnimationFrameCallbackDriver, JS::Cell);
|
||||
GC_DECLARE_ALLOCATOR(AnimationFrameCallbackDriver);
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/FlyString.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
namespace AttributeNames {
|
||||
|
@ -314,12 +315,12 @@ namespace AttributeNames {
|
|||
__ENUMERATE_HTML_ATTRIBUTE(willvalidate, "willvalidate") \
|
||||
__ENUMERATE_HTML_ATTRIBUTE(wrap, "wrap")
|
||||
|
||||
#define __ENUMERATE_HTML_ATTRIBUTE(name, attribute) extern FlyString name;
|
||||
#define __ENUMERATE_HTML_ATTRIBUTE(name, attribute) extern WEB_API FlyString name;
|
||||
ENUMERATE_HTML_ATTRIBUTES
|
||||
#undef __ENUMERATE_HTML_ATTRIBUTE
|
||||
|
||||
}
|
||||
|
||||
bool is_boolean_attribute(FlyString const& attribute);
|
||||
WEB_API bool is_boolean_attribute(FlyString const& attribute);
|
||||
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/HTML/FormAssociatedElement.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
@ -19,7 +20,7 @@ private: \
|
|||
return *this; \
|
||||
}
|
||||
|
||||
class AutocompleteElement {
|
||||
class WEB_API AutocompleteElement {
|
||||
public:
|
||||
enum class AutofillMantle {
|
||||
Anchor,
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
#include <AK/Noncopyable.h>
|
||||
#include <LibJS/Heap/Cell.h>
|
||||
#include <LibURL/Origin.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/HTML/NavigableContainer.h>
|
||||
#include <LibWeb/HTML/SandboxingFlagSet.h>
|
||||
#include <LibWeb/HTML/SessionHistoryEntry.h>
|
||||
|
@ -16,7 +17,7 @@
|
|||
|
||||
namespace Web::HTML {
|
||||
|
||||
class BrowsingContext final : public JS::Cell {
|
||||
class WEB_API BrowsingContext final : public JS::Cell {
|
||||
GC_CELL(BrowsingContext, JS::Cell);
|
||||
GC_DECLARE_ALLOCATOR(BrowsingContext);
|
||||
|
||||
|
@ -127,7 +128,7 @@ URL::Origin determine_the_origin(Optional<URL::URL const&>, SandboxingFlagSet, O
|
|||
SandboxingFlagSet determine_the_creation_sandboxing_flags(BrowsingContext const&, GC::Ptr<DOM::Element> embedder);
|
||||
|
||||
// FIXME: Find a better home for these
|
||||
bool url_matches_about_blank(URL::URL const& url);
|
||||
WEB_API bool url_matches_about_blank(URL::URL const& url);
|
||||
bool url_matches_about_srcdoc(URL::URL const& url);
|
||||
|
||||
}
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
#include <AK/RefCounted.h>
|
||||
#include <LibWeb/Bindings/PlatformObject.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/HTML/CustomElements/CustomElementDefinition.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
@ -17,7 +18,7 @@ struct ElementDefinitionOptions {
|
|||
};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/custom-elements.html#customelementregistry
|
||||
class CustomElementRegistry : public Bindings::PlatformObject {
|
||||
class WEB_API CustomElementRegistry : public Bindings::PlatformObject {
|
||||
WEB_PLATFORM_OBJECT(CustomElementRegistry, Bindings::PlatformObject);
|
||||
GC_DECLARE_ALLOCATOR(CustomElementRegistry);
|
||||
|
||||
|
|
|
@ -9,11 +9,12 @@
|
|||
#include <AK/Forward.h>
|
||||
#include <AK/Utf16String.h>
|
||||
#include <LibJS/Runtime/Date.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/WebIDL/ExceptionOr.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
u32 week_number_of_the_last_day(u64 year);
|
||||
WEB_API u32 week_number_of_the_last_day(u64 year);
|
||||
bool is_valid_week_string(Utf16View const& value);
|
||||
bool is_valid_month_string(Utf16View const& value);
|
||||
bool is_valid_date_string(Utf16View const& value);
|
||||
|
|
|
@ -8,11 +8,12 @@
|
|||
|
||||
#include <LibWeb/Bindings/DedicatedWorkerGlobalScopeGlobalMixin.h>
|
||||
#include <LibWeb/Bindings/WorkerGlobalScopePrototype.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/HTML/WorkerGlobalScope.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
class DedicatedWorkerGlobalScope
|
||||
class WEB_API DedicatedWorkerGlobalScope
|
||||
: public WorkerGlobalScope
|
||||
, public Bindings::DedicatedWorkerGlobalScopeGlobalMixin {
|
||||
WEB_PLATFORM_OBJECT(DedicatedWorkerGlobalScope, WorkerGlobalScope);
|
||||
|
|
|
@ -12,12 +12,13 @@
|
|||
#include <LibCore/Forward.h>
|
||||
#include <LibGC/Ptr.h>
|
||||
#include <LibJS/Forward.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/HTML/EventLoop/TaskQueue.h>
|
||||
#include <LibWeb/HighResolutionTime/DOMHighResTimeStamp.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
class EventLoop : public JS::Cell {
|
||||
class WEB_API EventLoop : public JS::Cell {
|
||||
GC_CELL(EventLoop, JS::Cell);
|
||||
GC_DECLARE_ALLOCATOR(EventLoop);
|
||||
|
||||
|
@ -140,10 +141,10 @@ private:
|
|||
GC::Ptr<GC::Function<void()>> m_rendering_task_function;
|
||||
};
|
||||
|
||||
EventLoop& main_thread_event_loop();
|
||||
TaskID queue_a_task(HTML::Task::Source, GC::Ptr<EventLoop>, GC::Ptr<DOM::Document>, GC::Ref<GC::Function<void()>> steps);
|
||||
TaskID queue_global_task(HTML::Task::Source, JS::Object&, GC::Ref<GC::Function<void()>> steps);
|
||||
void queue_a_microtask(DOM::Document const*, GC::Ref<GC::Function<void()>> steps);
|
||||
WEB_API EventLoop& main_thread_event_loop();
|
||||
WEB_API TaskID queue_a_task(HTML::Task::Source, GC::Ptr<EventLoop>, GC::Ptr<DOM::Document>, GC::Ref<GC::Function<void()>> steps);
|
||||
WEB_API TaskID queue_global_task(HTML::Task::Source, JS::Object&, GC::Ref<GC::Function<void()>> steps);
|
||||
WEB_API void queue_a_microtask(DOM::Document const*, GC::Ref<GC::Function<void()>> steps);
|
||||
void perform_a_microtask_checkpoint();
|
||||
|
||||
}
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue