Don't let the CSSValuePool's font family cache grow unbounded.
authorakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 26 Jan 2015 21:42:40 +0000 (21:42 +0000)
committerakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 26 Jan 2015 21:42:40 +0000 (21:42 +0000)
commit1a973ebb718958b75e5e5cfeb7cefa6fbd260d17
treecdcea0b548e2a5d0f357a437505bbe1104b68cfe
parent3a58a5bfaee8894c70709639ddd7aa6936e7a060
Don't let the CSSValuePool's font family cache grow unbounded.
<https://webkit.org/b/140894>

Reviewed by Chris Dumez.

Darin pointed out to Chris who pointed out to me that the font family cache
in CSSValuePool can grow unbounded until we get a system memory pressure
notification. Put a limit on it like we did with the font face cache.

* css/CSSValuePool.cpp:
(WebCore::CSSValuePool::createFontFamilyValue):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@179141 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/css/CSSValuePool.cpp