From c9062b4ed5396f270fbe70adcd442228fcc40b0d Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Fri, 3 Dec 2021 20:17:17 +0000 Subject: LibWeb: Remove now-unused CustomStyleValue --- Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'Userland/Libraries/LibWeb/CSS/Parser') diff --git a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp index 61a12a0849..073b6a660c 100644 --- a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp +++ b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp @@ -1908,15 +1908,8 @@ RefPtr Parser::parse_dynamic_value(StyleComponentValueRule const& co if (calc_expression) return CalculatedStyleValue::create("(FIXME:calc to string)", calc_expression.release_nonnull()); } else if (function.name().equals_ignoring_case("var")) { - // FIXME: Handle fallback value as second parameter - // https://www.w3.org/TR/css-variables-1/#using-variables - if (!component_value.function().values().is_empty()) { - auto& property_name_token = component_value.function().values().first(); - if (property_name_token.is(Token::Type::Ident)) - return CustomStyleValue::create(property_name_token.token().ident()); - else - dbgln("First argument to var() function was not an ident: '{}'", property_name_token.to_debug_string()); - } + // Declarations using `var()` should already be parsed as an UnresolvedStyleValue before this point. + VERIFY_NOT_REACHED(); } } -- cgit v1.2.3