mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-18 23:12:02 +00:00
LibWeb: Remove special parsing of physical border longhands
Parsing of these properties is handled by the default behaviour. No functionality changes.
This commit is contained in:
parent
24d522afce
commit
56c68aedea
Notes:
github-actions[bot]
2025-07-09 09:12:29 +00:00
Author: https://github.com/Calme1709
Commit: 56c68aedea
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5366
Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 0 additions and 24 deletions
|
@ -523,10 +523,6 @@ Parser::ParseErrorOr<NonnullRefPtr<CSSStyleValue const>> Parser::parse_css_value
|
|||
return parsed_value.release_nonnull();
|
||||
return ParseError::SyntaxError;
|
||||
case PropertyID::Border:
|
||||
case PropertyID::BorderBottom:
|
||||
case PropertyID::BorderLeft:
|
||||
case PropertyID::BorderRight:
|
||||
case PropertyID::BorderTop:
|
||||
if (auto parsed_value = parse_border_value(property_id, tokens); parsed_value && !tokens.has_next_token())
|
||||
return parsed_value.release_nonnull();
|
||||
return ParseError::SyntaxError;
|
||||
|
@ -1601,26 +1597,6 @@ RefPtr<CSSStyleValue const> Parser::parse_border_value(PropertyID property_id, T
|
|||
style_property = PropertyID::BorderStyle;
|
||||
width_property = PropertyID::BorderWidth;
|
||||
break;
|
||||
case PropertyID::BorderBottom:
|
||||
color_property = PropertyID::BorderBottomColor;
|
||||
style_property = PropertyID::BorderBottomStyle;
|
||||
width_property = PropertyID::BorderBottomWidth;
|
||||
break;
|
||||
case PropertyID::BorderLeft:
|
||||
color_property = PropertyID::BorderLeftColor;
|
||||
style_property = PropertyID::BorderLeftStyle;
|
||||
width_property = PropertyID::BorderLeftWidth;
|
||||
break;
|
||||
case PropertyID::BorderRight:
|
||||
color_property = PropertyID::BorderRightColor;
|
||||
style_property = PropertyID::BorderRightStyle;
|
||||
width_property = PropertyID::BorderRightWidth;
|
||||
break;
|
||||
case PropertyID::BorderTop:
|
||||
color_property = PropertyID::BorderTopColor;
|
||||
style_property = PropertyID::BorderTopStyle;
|
||||
width_property = PropertyID::BorderTopWidth;
|
||||
break;
|
||||
default:
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue