Most gradients have only 2 color stops. We can avoid growing the Vector<ColorStop> dynamically in the common case by using an inlineCapacity of 2. This yields a 0.4% speedup on Parcycle <http://www.mrspeaker.net/dev/parcycle/>
Created attachment 68019 [details] Proposed patch
Comment on attachment 68019 [details] Proposed patch r=me, i suspect this will actually save memory in the common case
Comment on attachment 68019 [details] Proposed patch Clearing flags on attachment: 68019 Committed r67801: <http://trac.webkit.org/changeset/67801>
All reviewed patches have been landed. Closing bug.