ladybird/Meta/Lagom/Tools/CodeGenerators/LibWeb
Sam Atkins fd45c53c11 LibWeb: Parse descriptors as style values, using the JSON data
The goal here is to do something a bit smarter with the parsing here
than we do for properties. Instead of the JSON saying "here are the
values, and here are the keywords, and we can have up to 3", here we
place the syntax in the JSON directly (though currently broken up as
one string per option) and then we attempt to parse each one in
sequence. It's something we'll need eventually for `@property` among
other things.

...However, in this first pass, I've gone with the simplest option of
hard-coding the types instead of figuring them out properly. So there's
a PositivePercentage type and a UnicodeRangeTokens type, instead of
properly implementing the grammar for those in a generic way.
2025-04-04 10:40:32 +01:00
..
BindingsGenerator IDLGenerators: Don't attempt to set null [PutForwards] attribute 2025-04-02 13:53:03 +01:00
CMakeLists.txt LibWeb: Generate DescriptorID enum 2025-04-04 10:40:32 +01:00
GenerateAriaRoles.cpp AK+Everywhere: Remove now-unecessary use of ByteString with JSON types 2025-02-20 19:27:51 -05:00
GenerateCSSDescriptors.cpp LibWeb: Parse descriptors as style values, using the JSON data 2025-04-04 10:40:32 +01:00
GenerateCSSEnums.cpp CodeGenerators: Fix clang-18 crash by specifying types explicitly 2025-02-22 12:38:11 -05:00
GenerateCSSKeyword.cpp LibWeb/CSS: Use NumericCalculationNode for constants 2025-02-27 21:42:43 +01:00
GenerateCSSMathFunctions.cpp LibWeb/CSS: Use NumericCalculationNode for constants 2025-02-27 21:42:43 +01:00
GenerateCSSMediaFeatureID.cpp AK+Everywhere: Remove now-unecessary use of ByteString with JSON types 2025-02-20 19:27:51 -05:00
GenerateCSSPropertyID.cpp LibWeb: Parse CSS fit-content(<length-percentage>) values 2025-02-27 00:44:14 +01:00
GenerateCSSPseudoClass.cpp AK+Everywhere: Remove now-unecessary use of ByteString with JSON types 2025-02-20 19:27:51 -05:00
GenerateCSSPseudoElement.cpp LibWeb: Implement functional pseudo-element parsing 2025-03-25 07:54:13 +00:00
GenerateCSSStyleProperties.cpp CodeGenerators: Move some utilities out of GenerateCSSStyleProperties 2025-03-27 11:53:09 +00:00
GenerateCSSTransformFunctions.cpp AK+Everywhere: Store JSON strings as String 2025-02-20 19:27:51 -05:00
GenerateNamedCharacterReferences.cpp LibWeb: Make named character references more spec-compliant & efficient 2025-03-22 16:03:44 +01:00
GenerateWebGLRenderingContext.cpp LibWeb/WebGL: Return from uniform methods if location is null 2025-03-03 08:43:33 +01:00
GenerateWindowOrWorkerInterfaces.cpp LibJS: Replace PropertyKey(char[]) with PropertyKey(FlyString) 2025-03-24 22:27:17 +00:00
GeneratorUtil.h CodeGenerators: Move some utilities out of GenerateCSSStyleProperties 2025-03-27 11:53:09 +00:00