Kenneth Myhra
2c8a689390
LibWeb: Make factory methods of DOM::CustomEvent fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
5ef9e02658
LibWeb: Make factory method of DOM::Comment fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
50c5f0d7da
LibWeb: Make factory method of DOM::Attr fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
b9c5828fe6
LibWeb: Make factory method of DOM::DOMImplementation fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
a5ad8b2959
LibWeb: Make factory method of DOM::AbortSignal fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
c4d559bd37
LibWeb: Make factory method of DOM::DocumentType fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
5f552ddc5c
LibWeb: Make factory method of DOM::AbortController fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
491c18a346
LibWeb: Make factory method of DOM::DocumentFragment fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
8fbd43cb27
LibWeb: Make factory method of CSS::ResolvedCSSStyleDeclaration fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
f28b8431bf
LibWeb: Make factory method of XHR::XMLHttpRequest fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
719839b882
LibWeb: Make factory method of CSS::StyleSheetList fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
57c34e6325
LibWeb: Make factory method of CSS::Screen fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
1e24126004
LibWeb: Make factory method of CSS::MediaQueryListEvent fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
64e4d3fd94
LibWeb: Make factory method of CSS::CSSSupportsRule fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
ada0a59fc1
LibWeb: Make factory method of URL::URL fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
6688f89ad3
LibWeb: Make factory method of FileAPI::FileList fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
15917146d3
LibWeb: Make factory method of FileAPI::Blob fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
bc02686ae9
LibWeb: Make factory method of CSS::MediaQueryList fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
5d9bc378c3
LibWeb: Make factory method of CSS::MediaList fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
a49ea467ad
LibWeb: Make factory method of CSS::CSSStyleSheet fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
4f4a908e5f
LibWeb: Make factory method of CSS::CSSStyleRule fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
c950d1904a
LibWeb: Make factory methods of CSS::CSSStyleDeclaration fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
48872cd190
LibWeb: Make factory methods of CSS::CSSRuleList fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
5601f439f9
LibWeb: Make factory method of CSS::CSSMediaRule fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
d53d8cacec
LibWeb: Make factory method of CSS::CSSImportRule fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
ff8495de35
LibWeb: Make factory method of CSS::CSSFontFaceRule fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
471ad7ba01
LibWeb: Make factory method of HTML::MessagePort fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
7ec444047c
LibWeb: Make factory methods of HTML::MessageEvent fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
3d79cdf095
LibWeb: Make factory method of HTML::MessageChannel fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
52e9839d8b
LibWeb: Make factory method of Crypto::SubtleCrypto fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
58af8e2021
LibWeb: Make factory method of Crypto::Crypto fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
fb3294863e
LibWeb: Return JS::NonnullGCPtr<StaticRange> instead of StaticRange*
2023-02-18 00:52:47 +01:00
Kenneth Myhra
6516329867
LibWeb: Propagate error in factory method of DOM::StaticRange
2023-02-18 00:52:47 +01:00
Kenneth Myhra
411097002b
LibWeb: Add a method to ExceptionOr to drop error handling
...
This should solely be used to to ignore errors in infallible contexts.
2023-02-18 00:52:47 +01:00
MacDue
e2691fcdf2
LibWeb: Always move (Nonnull)RefPtr parameters into StyleValues
...
This is done for consistency rather than any performance concerns.
2023-02-17 16:22:56 +00:00
MacDue
ac3af6624b
LibWeb: Use default equality operators for StyleValues
...
This removes a load of manually implemented equality operators. This
is done with a little pattern where all properties of a StyleValue are
placed inside a Properties member struct, with a defaulted equality
operator. This is then used to do the actual StyleValue compare.
There is also a CTRP class to avoid manually implementing the virtual
operator==()s for all StyleValues.
2023-02-17 16:22:56 +00:00
MacDue
9337892ce0
LibWeb: Use default equality operators for StyleValue helper structs
...
Co-authored-by: kleines Filmröllchen <filmroellchen@serenityos.org>
2023-02-17 16:22:56 +00:00
kleines Filmröllchen
d00a6ca11f
AK+LibWeb: Implement Variant equality operator
...
And make use of it for CSS StyleValues.
2023-02-17 16:22:56 +00:00
Timothy Flynn
88814acbd3
LibJS+Everywhere: Convert JS::Error to String
...
This includes an Error::create overload to create an Error from a UTF-8
StringView. If creating a String from that view fails, the factory will
return an OOM InternalError instead. VM::throw_completion can also make
use of this overload via its perfect forwarding.
2023-02-17 09:14:23 -05:00
Timothy Flynn
527edb55ad
LibWeb: Convert usages of Value::TDSWOSE to Value::TSWOSE
2023-02-16 14:32:22 +01:00
Timothy Flynn
b245300ba1
LibJS+Everywhere: Deprecate Value::to_string_without_side_effects
2023-02-16 14:32:22 +01:00
Sam Atkins
85f3de6331
LibWeb: Port CSS/Serialize.{h,cpp} to new Strings, and propagate errors
2023-02-15 12:48:26 -05:00
Sam Atkins
a0b1eddc56
LibWeb: Port CSS::MediaQuery to new Strings
2023-02-15 12:48:26 -05:00
Sam Atkins
a381ce9519
LibWeb: Port CSS::Supports to new Strings
2023-02-15 12:48:26 -05:00
Sam Atkins
fc3540c4b1
LibWeb: Port CSS::UnicodeRange to new Strings
2023-02-15 12:48:26 -05:00
Sam Atkins
316092d185
LibWeb: Use StringView in CSS::PreferredColorScheme
...
This doesn't need to hold the string data.
2023-02-15 12:48:26 -05:00
Sam Atkins
dca19b764b
LibWeb: Port CSS::Display to new Strings
2023-02-15 12:48:26 -05:00
Sam Atkins
41c4cc95e4
LibWeb: Port CSS::Parser::Rule to new Strings
...
`Rule::to_deprecated_string()` and
`DeclarationOrAtRule::to_deprecated_string()` are not used anywhere, so
we can just delete them.
2023-02-15 12:48:26 -05:00
Sam Atkins
bee32b6cd2
LibWeb: Port CSS::Parser::Declaration to new Strings
2023-02-15 12:48:26 -05:00
Sam Atkins
a168cda4a7
LibWeb: Port CSS::Parser::ComponentValue to new Strings
2023-02-15 12:48:26 -05:00