Sam Atkins
0e3487b9ab
LibWeb: Rename StyleValue -> CSSStyleValue
...
This matches the name in the CSS Typed OM spec.
https://drafts.css-houdini.org/css-typed-om-1/#cssstylevalue
No behaviour changes.
2024-08-15 13:58:38 +01:00
Sam Atkins
9de73bf89b
LibWeb/CSS: Parse gradient functions with TokenStream
...
They already used TokenStream for parsing the function parameters, but
this makes the `parse_foo_gradient()` functions themselves take a
TokenStream.
2024-08-10 10:36:39 +02:00
Sam Atkins
e4e048f278
LibWeb: Parse color values using TokenStream
2024-04-22 06:47:05 +02:00
Sam Atkins
384b18b271
LibWeb: Make parse_color_stop_list() a CSS Parser method
...
This lets us remove the color/dimension-parsing lambdas, since these
always forwarded to the same methods. This will make it easier to later
convert those methods to take a TokenStream.
2024-04-22 06:47:05 +02:00
Sam Atkins
12bcd029ff
LibWeb: Use parse_length_percentage() for radial-gradient radii
2023-12-30 20:11:24 +01:00
Sam Atkins
f69d38a346
LibWeb: Use ComponentValue::is_ident("..."sv) helper
2023-11-22 09:45:51 +01:00
Sam Atkins
7bcabbb325
LibWeb: Store ConicGradientStyleValue's position as PositionStyleValue
2023-11-07 22:00:24 +00:00
Sam Atkins
5cf85d30aa
LibWeb: Store RadialGradientStyleValue's position as PositionStyleValue
2023-11-07 22:00:24 +00:00
Sam Atkins
733ad57f39
LibWeb: Expose Parser::Function name as FlyString const&
...
This saves us from having to re-convert the StringView back to a
FlyString again when resolving UnresolvedStyleValues.
2023-09-05 14:27:23 +02:00
Sam Atkins
1feacd4b52
LibWeb: Use doubles for CSS dimension types
...
Avoid unintentionally converting between float and double multiple times
by just using double everywhere. Also, remove the unused `int` versions
of their constructors.
2023-08-20 14:25:18 +01:00
Sam Atkins
9e1bbfbd37
LibWeb: Make internal StyleValue-parsing methods infallible
2023-08-19 17:34:22 +02:00
Sam Atkins
199a931da1
LibWeb: Move gradient parsing code to a separate file
2023-08-17 19:39:10 +02:00