Searched refs:m_stops (Results 1 – 11 of 11) sorted by relevance
/external/webkit/WebCore/platform/graphics/ |
D | Gradient.cpp | 72 m_stops.append(ColorStop(value, r, g, b, a)); in addColorStop() 89 if (m_stops.isEmpty()) { in getColor() 97 if (m_stops.size()) in getColor() 98 std::stable_sort(m_stops.begin(), m_stops.end(), compareStops); in getColor() 101 if (value <= 0 || value <= m_stops.first().stop) { in getColor() 102 *r = m_stops.first().red; in getColor() 103 *g = m_stops.first().green; in getColor() 104 *b = m_stops.first().blue; in getColor() 105 *a = m_stops.first().alpha; in getColor() 108 if (value >= 1 || value >= m_stops.last().stop) { in getColor() [all …]
|
D | Gradient.h | 132 mutable Vector<ColorStop> m_stops; variable
|
/external/webkit/WebCore/css/ |
D | CSSGradientValue.cpp | 61 for (unsigned i = 0; i < m_stops.size(); i++) { in cssText() 63 if (m_stops[i].m_stop == 0) in cssText() 64 result += "from(" + m_stops[i].m_color->cssText() + ")"; in cssText() 65 else if (m_stops[i].m_stop == 1) in cssText() 66 result += "to(" + m_stops[i].m_color->cssText() + ")"; in cssText() 68 …result += "color-stop(" + String::number(m_stops[i].m_stop) + ", " + m_stops[i].m_color->cssText()… in cssText() 96 for (unsigned i = 0; i < m_stops.size(); i++) { in createGradient() 97 …Color color = renderer->document()->styleSelector()->getColorFromPrimitiveValue(m_stops[i].m_color… in createGradient() 98 gradient->addColorStop(m_stops[i].m_stop, color); in createGradient() 135 if (m_stops.size()) in sortStopsIfNeeded() [all …]
|
D | CSSGradientValue.h | 73 void addStop(const CSSGradientColorStop& stop) { m_stops.append(stop); } in addStop() 106 Vector<CSSGradientColorStop> m_stops; variable
|
/external/webkit/WebCore/platform/graphics/skia/ |
D | GradientSkia.cpp | 126 if (m_stops.size()) in platformGradient() 127 std::stable_sort(m_stops.begin(), m_stops.end(), compareStops); in platformGradient() 130 size_t countUsed = totalStopsNeeded(m_stops.data(), m_stops.size()); in platformGradient() 132 ASSERT(countUsed >= m_stops.size()); in platformGradient() 139 fillStops(m_stops.data(), m_stops.size(), pos, colors); in platformGradient()
|
/external/webkit/WebCore/svg/ |
D | GradientAttributes.h | 42 const Vector<SVGGradientStop>& stops() const { return m_stops; } in stops() 47 void setStops(const Vector<SVGGradientStop>& value) { m_stops = value; m_stopsSet = true; } in setStops() 59 Vector<SVGGradientStop> m_stops; member
|
D | SVGLinearGradientElement.cpp | 93 Vector<SVGGradientStop> m_stops = attributes.stops(); in buildGradient() local 95 for (unsigned i = 0; i < m_stops.size(); ++i) { in buildGradient() 96 float offset = std::min(std::max(previousOffset, m_stops[i].first), 1.0f); in buildGradient() 98 gradient->addColorStop(offset, m_stops[i].second); in buildGradient()
|
/external/webkit/WebCore/svg/graphics/ |
D | SVGPaintServerGradient.h | 64 void setGradientStops(const Vector<SVGGradientStop>& stops) { m_stops = stops; } in setGradientStops() 65 const Vector<SVGGradientStop>& gradientStops() const { return m_stops; } in gradientStops() 76 Vector<SVGGradientStop> m_stops;
|
/external/webkit/WebCore/platform/graphics/android/ |
D | GradientAndroid.cpp | 78 const size_t count = m_stops.size(); in getShader() 83 Vector<ColorStop>::iterator iter = m_stops.begin(); in getShader() 84 for (int i = 0; iter != m_stops.end(); i++) { in getShader()
|
/external/webkit/WebCore/platform/graphics/qt/ |
D | GradientQt.cpp | 55 Vector<ColorStop>::iterator stopIterator = m_stops.begin(); in platformGradient() 58 while (stopIterator != m_stops.end()) { in platformGradient()
|
/external/webkit/WebCore/platform/graphics/cairo/ |
D | GradientCairo.cpp | 54 Vector<ColorStop>::iterator stopIterator = m_stops.begin(); in platformGradient() 55 while (stopIterator != m_stops.end()) { in platformGradient()
|