Andreas Kling
788c2c5a8d
LibWeb: Stop using fallible JSON API in code generators
2023-08-22 13:08:24 +02:00
Andreas Kling
20ea82bacc
LibWeb: Make (snake/title/camel) casification functions infallible
2023-08-22 13:08:24 +02:00
Andreas Kling
0b83717ea2
AK: Make SourceGenerator::fork() infallible
2023-08-22 13:08:24 +02:00
Andreas Kling
244516142a
AK: Remove fallible SourceGenerator::try_append()
...
And fall back to the infallible append().
2023-08-22 13:08:24 +02:00
Andreas Kling
8b936b5912
AK: Make SourceGenerator::set() infallible
2023-08-22 13:08:24 +02:00
Lucas CHOLLET
3f35ffb648
Userland: Prefer _string
over _short_string
...
As `_string` can't fail anymore (since 3434412
), there are no real
benefits to use the short variant in most cases.
2023-08-08 07:37:21 +02:00
Sam Atkins
e7dd5e5b05
CodeGenerators: Port GenerateCSSMediaFeatureID to new SourceGen API
2023-06-17 17:48:06 +01:00
Sam Atkins
8e53e5afc4
AK: Propagate errors from SourceGenerator::fork()
2023-06-17 17:48:06 +01:00
Sam Atkins
540cc42618
CodeGenerators: Convert GeneratorUtil to String
...
I may have got a little carried away propagating some of the errors. :^)
2023-06-17 17:48:06 +01:00
Tim Schumacher
8032724574
CodeGenerators: Ensure that we always print the entire generated output
2023-03-13 15:16:20 +00:00
Tim Schumacher
d5871f5717
AK: Rename Stream::{read,write} to Stream::{read_some,write_some}
...
Similar to POSIX read, the basic read and write functions of AK::Stream
do not have a lower limit of how much data they read or write (apart
from "none at all").
Rename the functions to "read some [data]" and "write some [data]" (with
"data" being omitted, since everything here is reading and writing data)
to make them sufficiently distinct from the functions that ensure to
use the entire buffer (which should be the go-to function for most
usages).
No functional changes, just a lot of new FIXMEs.
2023-03-13 15:16:20 +00:00
Sam Atkins
f0b72b819e
LibWeb: Make property/media-feature name matching ASCII case-insensitive
...
https://www.w3.org/TR/css-conditional-3/#dom-css-supports specifically
asks for this when calling `CSS::property_id_from_string()`, but in
general, CSS property and media-feature names can only contain ASCII.
2023-02-19 00:46:47 +01:00
Tim Schumacher
606a3982f3
LibCore: Move Stream-based file into the Core
namespace
2023-02-13 00:50:07 +00:00
Sam Atkins
ad9b2043dd
CodeGenerators: Replace uses of JsonObject::get_deprecated()/get_ptr()
2023-01-26 09:57:14 -05:00
Sam Atkins
1dd6b7f5b7
AK+Everywhere: Rename JsonObject::get() to ::get_deprecated()
...
This is a preparatory step to making `get()` return `ErrorOr`.
2023-01-17 19:52:52 -05:00
martinfalisse
ce0f41b9fb
LibWeb+WebContent: Use new String class in CSS::StyleValue
...
Converts uses of DeprecatedString to String in StyleValue, and patches
surrounding files that depend on these functions.
2023-01-09 11:09:31 +01:00
sin-ack
3f3f45580a
Everywhere: Add sv suffix to strings relying on StringView(char const*)
...
Each of these strings would previously rely on StringView's char const*
constructor overload, which would call __builtin_strlen on the string.
Since we now have operator ""sv, we can replace these with much simpler
versions. This opens the door to being able to remove
StringView(char const*).
No functional changes.
2022-07-12 23:11:35 +02:00
Sam Atkins
cb406e79f4
Meta+LibWeb: Port MediaFeatureID.h/cpp generators to invoke_generator()
2022-04-02 09:18:07 -04:00