~ubuntu-branches/ubuntu/lucid/webkit/lucid-updates

« back to all changes in this revision

Viewing changes to WebCore/platform/graphics/Gradient.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Gustavo Noronha Silva
  • Date: 2010-02-04 19:30:57 UTC
  • mfrom: (1.2.8 upstream) (4.3.9 sid)
  • Revision ID: james.westby@ubuntu.com-20100204193057-d3018lm1fipb0703
* New upstream release
* debian/copyright:
- Updated with changes since 1.1.19.

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
    return a.stop < b.stop;
106
106
}
107
107
 
 
108
void Gradient::sortStopsIfNecessary()
 
109
{
 
110
    if (m_stopsSorted)
 
111
        return;
 
112
 
 
113
    if (m_stops.size())
 
114
        std::stable_sort(m_stops.begin(), m_stops.end(), compareStops);
 
115
    m_stopsSorted = true;
 
116
}
 
117
 
108
118
void Gradient::getColor(float value, float* r, float* g, float* b, float* a) const
109
119
{
110
120
    ASSERT(value >= 0);