Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ebcf88c1bc303388b4d1ed89f3bd812631b719e2
https://github.com/WebKit/WebKit/commit/ebcf88c1bc303388b4d1ed89f3bd812631b719e2
Author: Antti Koivisto <[email protected]>
Date: 2026-04-23 (Thu, 23 Apr 2026)
Changed paths:
M Source/WebCore/style/MatchedDeclarationsCache.cpp
Log Message:
-----------
Page memory grows unboundedly when animating @property-registered custom
properties consumed by calc() across many elements
https://bugs.webkit.org/show_bug.cgi?id=312236
rdar://171659746
Reviewed by Simon Fraser.
Some scenarios like animated custom properties may lead to unlimited cache
growth. While these should be fixed
with a better cache design it is also good idea to protect against this with a
hard maximum size.
* Source/WebCore/style/MatchedDeclarationsCache.cpp:
(WebCore::Style::MatchedDeclarationsCache::add):
Limit MDC size to 16k entries.
Canonical link: https://commits.webkit.org/311862@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications