mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-16 04:59:23 +00:00
LibWeb/CSS: Stop using PropertyID::Invalid in border parsing
This commit is contained in:
parent
7d4b2d10e4
commit
56c7d838f0
Notes:
github-actions[bot]
2025-09-30 13:22:28 +00:00
Author: https://github.com/AtkinsSJ
Commit: 56c7d838f0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6347
Reviewed-by: https://github.com/gmta ✅
1 changed files with 4 additions and 6 deletions
|
@ -1676,15 +1676,13 @@ RefPtr<StyleValue const> Parser::parse_border_value(PropertyID property_id, Toke
|
|||
RefPtr<StyleValue const> border_color;
|
||||
RefPtr<StyleValue const> border_style;
|
||||
|
||||
auto color_property = PropertyID::Invalid;
|
||||
auto style_property = PropertyID::Invalid;
|
||||
auto width_property = PropertyID::Invalid;
|
||||
auto color_property = PropertyID::BorderColor;
|
||||
auto style_property = PropertyID::BorderStyle;
|
||||
auto width_property = PropertyID::BorderWidth;
|
||||
|
||||
switch (property_id) {
|
||||
case PropertyID::Border:
|
||||
color_property = PropertyID::BorderColor;
|
||||
style_property = PropertyID::BorderStyle;
|
||||
width_property = PropertyID::BorderWidth;
|
||||
// Already set above.
|
||||
break;
|
||||
case PropertyID::BorderBlock:
|
||||
color_property = PropertyID::BorderBlockColor;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue