Reduce css @keyframes memory
Currently, for each tree scope, we gather all @keyframes rules into a hash map. This may cause memory issues when we have web components that carry @keyframes rules in its style sheet. This patch makes each tree scope iterate the already stored ActiveStyleSheetVector instead, so that we can save some memory. Bug: 1141814 Change-Id: I09a1fda77f10a22376ed83a0ac7bd1f6f9f3cca9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2493431Reviewed-by:Rune Lillesveen <futhark@chromium.org> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#823619}
Showing
Please register or sign in to comment