LibWeb: Parse grid track placements using TokenStream

I'm not entirely happy with this, but I barely understand grid, and this
does still work.
This commit is contained in:
Sam Atkins 2023-12-08 12:07:48 +00:00 committed by Sam Atkins
commit 14e2e2bac4
Notes: sideshowbarker 2024-07-17 03:45:48 +09:00
2 changed files with 74 additions and 50 deletions

View file

@ -262,7 +262,7 @@ private:
RefPtr<StyleValue> parse_grid_auto_track_sizes(Vector<ComponentValue> const&);
RefPtr<GridAutoFlowStyleValue> parse_grid_auto_flow_value(TokenStream<ComponentValue>&);
RefPtr<StyleValue> parse_grid_track_size_list_shorthand_value(PropertyID, Vector<ComponentValue> const&);
RefPtr<StyleValue> parse_grid_track_placement(Vector<ComponentValue> const&);
RefPtr<StyleValue> parse_grid_track_placement(TokenStream<ComponentValue>&);
RefPtr<StyleValue> parse_grid_track_placement_shorthand_value(PropertyID, TokenStream<ComponentValue>&);
RefPtr<StyleValue> parse_grid_template_areas_value(TokenStream<ComponentValue>&);
RefPtr<StyleValue> parse_grid_area_shorthand_value(TokenStream<ComponentValue>&);