mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 19:19:30 +00:00
LibWeb: Implement IntegerStyleValue, for holding <integer>
Having one StyleValue for `<number>` and `<integer>` is making user code more complicated than it needs to be. We know based on the property being parsed, whether it wants a `<number>` or an `<integer>`, so we can use separate StyleValue types for these.
This commit is contained in:
parent
ad8565011c
commit
1160d8186b
Notes:
sideshowbarker
2024-07-17 07:35:03 +09:00
Author: https://github.com/AtkinsSJ
Commit: 1160d8186b
Pull-request: https://github.com/SerenityOS/serenity/pull/19208
10 changed files with 105 additions and 23 deletions
|
@ -290,7 +290,8 @@ private:
|
|||
ErrorOr<RefPtr<StyleValue>> parse_dynamic_value(ComponentValue const&);
|
||||
ErrorOr<RefPtr<CalculatedStyleValue>> parse_calculated_value(Vector<ComponentValue> const&);
|
||||
ErrorOr<RefPtr<StyleValue>> parse_dimension_value(ComponentValue const&);
|
||||
ErrorOr<RefPtr<StyleValue>> parse_numeric_value(ComponentValue const&);
|
||||
ErrorOr<RefPtr<StyleValue>> parse_integer_value(TokenStream<ComponentValue>&);
|
||||
ErrorOr<RefPtr<StyleValue>> parse_number_value(TokenStream<ComponentValue>&);
|
||||
ErrorOr<RefPtr<StyleValue>> parse_identifier_value(ComponentValue const&);
|
||||
ErrorOr<RefPtr<StyleValue>> parse_color_value(ComponentValue const&);
|
||||
ErrorOr<RefPtr<StyleValue>> parse_rect_value(ComponentValue const&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue