mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00: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:
parent
bad9efac22
commit
86e6aa0291
Notes:
github-actions[bot]
2025-12-01 11:01:53 +00:00
Author: https://github.com/Calme1709
Commit: 86e6aa0291
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6707
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/gmta
2 changed files with 10 additions and 1 deletions
|
|
@ -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++;
|
||||
)~~~");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue