LibWeb: Rename "var_or_attr" to "arbitrary_substitution_function"

This is the spec term, and will apply to many more things than var() and
attr().
This commit is contained in:
Sam Atkins 2025-03-06 16:09:18 +00:00 committed by Tim Ledbetter
parent 8f01297182
commit b5ed910f1f
Notes: github-actions[bot] 2025-07-09 15:46:26 +00:00
2 changed files with 8 additions and 8 deletions

View file

@ -4222,7 +4222,7 @@ NonnullRefPtr<CSSStyleValue const> Parser::resolve_unresolved_style_value(Parsin
{
// Unresolved always contains a var() or attr(), unless it is a custom property's value, in which case we shouldn't be trying
// to produce a different CSSStyleValue from it.
VERIFY(unresolved.contains_var_or_attr());
VERIFY(unresolved.contains_arbitrary_substitution_function());
auto parser = Parser::create(context, ""sv);
return parser.resolve_unresolved_style_value(element, pseudo_element, property_id, unresolved);