Avoid unbounded growth of font_data_table in CSSFontFaceSource
Animating or using an ever increasing number of instances of variable fonts can make the font_data_table_ in CSSFontFaceSource grow without bounds. Set a limit, and remove least recently used entries from the table. In my experiments this reduces the tab memory leakage for the URL from issue 778352 to a third and should help keep the tab running a lot longer. Bug: 778352 Change-Id: I9a812afdffb318be977def0b2c0301321603ab15 Reviewed-on: https://chromium-review.googlesource.com/824172 Commit-Queue: Emil A Eklund <eae@chromium.org> Reviewed-by:Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#523793}
Showing
Please register or sign in to comment