If the gradient has 2 stops and is already ordered, there's no need to call std::stable_sort. This yields a 0.3% speedup on Parcycle <http://www.mrspeaker.net/dev/parcycle/> Note: Only relevant for Qt and CG.
Created attachment 68020 [details] Proposed patch
Comment on attachment 68020 [details] Proposed patch r=me
Comment on attachment 68020 [details] Proposed patch Clearing flags on attachment: 68020 Committed r67804: <http://trac.webkit.org/changeset/67804>
All reviewed patches have been landed. Closing bug.