mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 00:29:15 +00:00
LibWeb/CSS: Add method for parsing <custom-ident>
directly
We specifically want to parse one inside a selector, where we only care about the string itself and don't want a whole style value.
This commit is contained in:
parent
285fbc8f1c
commit
5cf04a33ad
Notes:
github-actions[bot]
2025-03-25 07:56:19 +00:00
Author: https://github.com/AtkinsSJ
Commit: 5cf04a33ad
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4063
2 changed files with 14 additions and 6 deletions
|
@ -301,6 +301,7 @@ private:
|
|||
Optional<PropertyAndValue> parse_css_value_for_properties(ReadonlySpan<PropertyID>, TokenStream<ComponentValue>&);
|
||||
RefPtr<CSSStyleValue> parse_builtin_value(TokenStream<ComponentValue>&);
|
||||
RefPtr<CSSStyleValue> parse_calculated_value(ComponentValue const&);
|
||||
Optional<FlyString> parse_custom_ident(TokenStream<ComponentValue>&, ReadonlySpan<StringView> blacklist);
|
||||
RefPtr<CustomIdentStyleValue> parse_custom_ident_value(TokenStream<ComponentValue>&, ReadonlySpan<StringView> blacklist);
|
||||
// NOTE: Implemented in generated code. (GenerateCSSMathFunctions.cpp)
|
||||
RefPtr<CalculationNode> parse_math_function(Function const&, CalculationContext const&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue