mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01: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
|
|
@ -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…
Reference in New Issue
Block a user