diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2021-12-03 20:17:17 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-12-09 21:30:31 +0100 |
commit | c9062b4ed5396f270fbe70adcd442228fcc40b0d (patch) | |
tree | 9949f88d698da411877987cf9317bb2f2897c2b4 /Userland/Libraries/LibWeb/CSS/Parser | |
parent | 10aa06f16fbbf73e1cc5a55d8963dc0965442f38 (diff) | |
download | serenity-c9062b4ed5396f270fbe70adcd442228fcc40b0d.zip |
LibWeb: Remove now-unused CustomStyleValue
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/Parser')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
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<StyleValue> 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(); } } |