From 56c68aedea2a9343dbcc7a5f231a63ac0f81820a Mon Sep 17 00:00:00 2001 From: Callum Law Date: Wed, 9 Jul 2025 18:41:21 +1200 Subject: [PATCH] LibWeb: Remove special parsing of physical border longhands Parsing of these properties is handled by the default behaviour. No functionality changes. --- .../LibWeb/CSS/Parser/PropertyParsing.cpp | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/Libraries/LibWeb/CSS/Parser/PropertyParsing.cpp b/Libraries/LibWeb/CSS/Parser/PropertyParsing.cpp index 523fd580b5e..d5dadbd1f64 100644 --- a/Libraries/LibWeb/CSS/Parser/PropertyParsing.cpp +++ b/Libraries/LibWeb/CSS/Parser/PropertyParsing.cpp @@ -523,10 +523,6 @@ Parser::ParseErrorOr> 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 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(); }