LibWeb: Keep track of random function index within property value

Caching keys for 'auto' <random-value-sharing> rely on this value to
distinguish between two random functions in a single property
This commit is contained in:
Callum Law 2025-11-05 13:22:12 +13:00 committed by Sam Atkins
parent bad9efac22
commit 86e6aa0291
Notes: github-actions[bot] 2025-12-01 11:01:53 +00:00
2 changed files with 10 additions and 1 deletions

View file

@ -266,6 +266,8 @@ RefPtr<CalculationNode const> Parser::parse_math_function(Function const& functi
function_generator.append(R"~~~(
if (!context_allows_random_functions())
return nullptr;
m_random_function_index++;
)~~~");
}