Avoid unnecessarily padding the FontDescription families vector.
authorakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Nov 2013 11:45:47 +0000 (11:45 +0000)
committerakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Nov 2013 11:45:47 +0000 (11:45 +0000)
commit2108a5e80d60f9c8172cf01aa7242bfca7dd116b
tree01c3744e1c14ec8635b7a39318e29a81c47b6d73
parent9fc4a18236c3c7c6447daed8ea3dce0aec35e6c0
Avoid unnecessarily padding the FontDescription families vector.
<https://webkit.org/b/124267>

Use a bit of reserveInitialCapacity+uncheckedAppend grease to avoid
jumping all the way to capacity=16 when a style has more than just
a single font-family in it.

130 kB progression on HTML5-8266 locally.

Reviewed by Antti Koivisto.

* css/DeprecatedStyleBuilder.cpp:
(WebCore::ApplyPropertyFontFamily::applyValue):

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