mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
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:
Notes:
github-actions[bot]
2025-12-01 11:01:53 +00:00
Author: https://github.com/Calme1709 Commit: https://github.com/LadybirdBrowser/ladybird/commit/86e6aa02917 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6707 Reviewed-by: https://github.com/AtkinsSJ ✅ Reviewed-by: https://github.com/gmta
@@ -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++;
|
||||
)~~~");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user