Kenneth Myhra
f918d12655
LibWeb: Make factory methods of WebGL::WebGLContextEvent fallible
2023-02-22 09:55:33 +01:00
Kenneth Myhra
ff92324fa5
LibWeb: Make factory method of DOM::ElementFactory fallible
2023-02-22 09:55:33 +01:00
Kenneth Myhra
a2381a672d
LibWeb: Make factory method of Fetch::HeadersIterator fallible
2023-02-22 09:55:33 +01:00
Kenneth Myhra
b3734627a1
LibWeb: Make factory method of URL::URLSearchParamsIterator fallible
2023-02-22 09:55:33 +01:00
Kenneth Myhra
1f48081ee4
LibWeb: Make factory methods of IDLEventListener and NodeFilter fallible
2023-02-22 09:55:33 +01:00
Kenneth Myhra
e57461b89e
LibWeb: Make factory methods of UIEvents::WheelEvent fallible
2023-02-22 09:55:33 +01:00
Kenneth Myhra
587cf355ed
LibWeb: Make factory methods of UIEvents::UIEvent fallible
...
This affects calls to FocusEvent::create() since FocusEvent does not
implement its own create() method.
2023-02-22 09:55:33 +01:00
Kenneth Myhra
a401cff4e2
LibWeb: Make factory methods of UIEvents::KeyboardEvent fallible
2023-02-22 09:55:33 +01:00
Kenneth Myhra
b91d599177
LibWeb: Make factory method of UIEvents::FocusEvent fallible
2023-02-22 09:55:33 +01:00
Luke Wilde
2ca8cf49ca
LibWeb: Use browsing context creator URL for about:blank documents
...
In about:blank documents, we should use the browsing context's creator
URL as the base URL, if it exists and there is no <base> element.
This means that any about:blank frames will have URLs parse relative to
their parent frame's URL.
Fixes #17394 .
2023-02-21 18:52:46 +01:00
Andrew Kaster
f40094d014
LibWeb+LibJS: Format Console arguments with JS::Print
...
Instead of just calling JS::Value::to_string_without_side_effects() when
printing values to the console, have all the console clients use
the same JS::Print that the REPL does to print values.
This method leaves some things to be desired as far as OOM hardening
goes, however. We should be able to create a String in a way that
doesn't OOM on failure so hard.
2023-02-21 10:57:44 +01:00
Andreas Kling
f11899f885
LibWeb+LibIDL: Fix (or paper over) various const-correctness issues
...
There's definitely stuff to iterate on here, but this takes care of
making the libraries compile with stricter RP and NNRP.
2023-02-21 00:54:04 +01:00
MacDue
3676f5085e
LibWeb: Replace RefPtr
with ValueComparingRefPtr
in StyleValue
...
Like the name suggests this pointer type compares its pointees by value
rather than just by the pointer. This is needed for the defaulted
struct Properties equality operator.
This commit also contains a few changes to StyleValue such as replacing
the operator==()s with a .equals() again. This is done to avoid the new
reversed operator==()s ambiguity in C++20.
2023-02-20 10:50:20 +01:00
Jonah
30ec59f163
WebDriver: Add computedlabel endpoint
2023-02-19 13:28:01 -05:00
Sam Atkins
2db168acc1
LibTextCodec+Everywhere: Port Decoders to new Strings
2023-02-19 17:15:47 +01:00
Sam Atkins
f2a9426885
LibTextCodec+Everywhere: Return Optional<Decoder&> from decoder_for()
2023-02-19 17:15:47 +01:00
Jonah
29d724d95c
LibWeb: Serialize Accessible Name and Description for Accessibility Tree
...
These will get displayed in the DOM inspector.
2023-02-19 15:58:20 +01:00
Jonah
da5c9189b2
LibWeb: Implement Accessible Name and Description Calculation
...
This is an initial implementation of the accname standard. There is
still some of the algorithm left unimplemented that we will need
to implement in the future. However, as is, this implementation is
sufficient for basic pages.
2023-02-19 15:58:20 +01:00
Jonah
fc3ee471ed
LibWeb: Add ARIA::allows_name_from_content
...
This is required to implement accessible name and description
calculation.
2023-02-19 15:58:20 +01:00
Andreas Kling
df235d2c9f
LibWeb: Relax unnecessarily narrow cast in Node::containing_block()
2023-02-19 12:28:50 +01:00
Sam Atkins
6cc5e09c71
LibWeb: Port StyleComputer to new Strings
2023-02-19 00:51:16 +01:00
Sam Atkins
1c77867c78
LibWeb: Port FontCache to new Strings
2023-02-19 00:51:16 +01:00
Sam Atkins
faab2fe101
LibWeb: Store stylesheet sources as StringViews
2023-02-19 00:51:16 +01:00
Sam Atkins
13d2111b74
LibWeb: Port Selector to new Strings
...
Also use `Infra::is_ascii_case_insensitive_match()` in some appropriate
places, after checking the specs.
2023-02-19 00:51:16 +01:00
Sam Atkins
c2f0b20d6b
LibWeb: Port FontFace to new Strings
2023-02-19 00:51:16 +01:00
Sam Atkins
33e9c4e1b2
LibWeb: Port GeneralEnclosed to new Strings
2023-02-19 00:51:16 +01:00
Sam Atkins
2026ea557e
LibWeb: Use is_ascii_case_insensitive_match() where the spec says to
2023-02-19 00:46:47 +01:00
Aliaksandr Kalenik
05b5a3bfba
LibWeb: Transform translate() values to device pixels before painting
2023-02-19 00:43:40 +01:00
Luke Wilde
3275d659bf
LibWeb: Convert FormData to String and Vector storage
...
This makes use of the new [UseNewAKString] extended attribute. Using
Vector storage will make it easier to make this interface into an IDL
iterable. It seems the reason it didn't use Vector originally was due
to awkward DeprecatedString -> String conversions.
2023-02-18 01:23:36 +01:00
Kenneth Myhra
84c7af4dcb
LibWeb: Make factory method of XHR::ProgressEvent fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
35622606c1
LibWeb: Make factory method of URL::URLSearchParams fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
71316614b8
LibWeb: Make factory method of SVG::SVGLength fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
bfc8cbcf3b
LibWeb: Make factory method of HTML::ModuleScript fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
3e834636a6
LibWeb: Make factory method of HTML::Window fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
b41401bab2
LibWeb: Make factory method of HTML::Storage fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
d7ee378018
LibWeb: Make factory method of HTML::Navigator fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
2f4db60c08
LibWeb: Make factory method of HTML::History fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
3941e64fde
LibWeb: Make factory method of HTML::PromiseRejectionEvent fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
193de231e0
LibWeb: Make factory method of HTML::WorkerNavigator fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
86b7f148b9
LibWeb: Make factory method of HTML::Path2D fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
2b391ea622
LibWeb: Make factory method of HTML::HTMLOptionsCollection fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
b604bbaf29
LibWeb: Make factory method of HTML::DOMStringMap fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
809206f50e
LibWeb: Make factory method of HTML::SubmitEvent fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
c5de2c3348
LibWeb: Make factory method of HTML::TextMetrics fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
d9845bb24b
LibWeb: Make factory method of HTML::PageTransitionEvent fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
97b5aa56da
LibWeb: Make factory method of HTML::ErrorEvent fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
2ed7f64c73
LibWeb: Make factory method of HTML::CloseEvent fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
b7c488e51e
LibWeb: Make factory method of HTML::CanvasRenderingContext2D fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
2506666991
LibWeb: Make factory methods of HTML::CanvasGradient fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
63b69f3672
LibWeb: Make factory method of SVG::SVGAnimatedLength fallible
2023-02-18 00:52:47 +01:00