Gradient::platformGradient: Vector reserveCapacity -> reserveInitialCapacity
authorbenjamin@webkit.org <benjamin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 11 May 2013 07:56:09 +0000 (07:56 +0000)
committerbenjamin@webkit.org <benjamin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 11 May 2013 07:56:09 +0000 (07:56 +0000)
commit4405367f06ed97796d8ec018bae4b849f0f22c34
tree4a6ba0ae75a69b7a02bfa3040f63f085214c1fad
parent0ec951adc41853ab18f6d637794e8ed3d5cf1c4c
Gradient::platformGradient: Vector reserveCapacity -> reserveInitialCapacity
https://bugs.webkit.org/show_bug.cgi?id=115779

Reviewed by Andreas Kling.

* platform/graphics/cg/GradientCG.cpp:
(WebCore::Gradient::platformGradient): Clang is surprisingly smart at removing
all the branches of this function. Remove two more with reserveInitialCapacity.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149927 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/cg/GradientCG.cpp