Home
last modified time | relevance | path

Searched refs:m_stops (Results 1 – 13 of 13) sorted by relevance

/external/webkit/WebCore/platform/graphics/
DGradient.cpp96 m_stops.append(ColorStop(value, r, g, b, a)); in addColorStop()
113 if (m_stops.size()) in sortStopsIfNecessary()
114 std::stable_sort(m_stops.begin(), m_stops.end(), compareStops); in sortStopsIfNecessary()
123 if (m_stops.isEmpty()) { in getColor()
131 if (m_stops.size()) in getColor()
132 std::stable_sort(m_stops.begin(), m_stops.end(), compareStops); in getColor()
135 if (value <= 0 || value <= m_stops.first().stop) { in getColor()
136 *r = m_stops.first().red; in getColor()
137 *g = m_stops.first().green; in getColor()
138 *b = m_stops.first().blue; in getColor()
[all …]
DGradient.h145 mutable Vector<ColorStop> m_stops; variable
/external/webkit/WebCore/css/
DCSSGradientValue.cpp59 for (unsigned i = 0; i < m_stops.size(); i++) { in cssText()
61 if (m_stops[i].m_stop == 0) in cssText()
62 result += "from(" + m_stops[i].m_color->cssText() + ")"; in cssText()
63 else if (m_stops[i].m_stop == 1) in cssText()
64 result += "to(" + m_stops[i].m_color->cssText() + ")"; in cssText()
66 …result += "color-stop(" + String::number(m_stops[i].m_stop) + ", " + m_stops[i].m_color->cssText()… in cssText()
94 for (unsigned i = 0; i < m_stops.size(); i++) { in createGradient()
95 …Color color = renderer->document()->styleSelector()->getColorFromPrimitiveValue(m_stops[i].m_color… in createGradient()
96 gradient->addColorStop(m_stops[i].m_stop, color); in createGradient()
133 if (m_stops.size()) in sortStopsIfNeeded()
[all …]
DCSSGradientValue.h73 void addStop(const CSSGradientColorStop& stop) { m_stops.append(stop); } in addStop()
106 Vector<CSSGradientColorStop> m_stops; variable
/external/webkit/WebCore/platform/graphics/cg/
DGradientCG.cpp89 colorComponents.reserveCapacity(m_stops.size() * 4); // RGBA components per stop in platformGradient()
92 locations.reserveCapacity(m_stops.size()); in platformGradient()
94 for (size_t i = 0; i < m_stops.size(); ++i) { in platformGradient()
95 colorComponents.uncheckedAppend(m_stops[i].red); in platformGradient()
96 colorComponents.uncheckedAppend(m_stops[i].green); in platformGradient()
97 colorComponents.uncheckedAppend(m_stops[i].blue); in platformGradient()
98 colorComponents.uncheckedAppend(m_stops[i].alpha); in platformGradient()
100 locations.uncheckedAppend(m_stops[i].stop); in platformGradient()
103 …entCreateWithColorComponents(colorSpace, colorComponents.data(), locations.data(), m_stops.size()); in platformGradient()
/external/webkit/WebCore/platform/graphics/skia/
DGradientSkia.cpp126 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/platform/graphics/wince/
DGradientWince.cpp40 if (m_stops.size()) in getStops()
41 std::stable_sort(m_stops.begin(), m_stops.end(), compareStops); in getStops()
44 return m_stops; in getStops()
/external/webkit/WebCore/svg/
DGradientAttributes.h40 const Vector<SVGGradientStop>& stops() const { return m_stops; } in stops()
45 void setStops(const Vector<SVGGradientStop>& value) { m_stops = value; m_stopsSet = true; } in setStops()
57 Vector<SVGGradientStop> m_stops; member
DSVGLinearGradientElement.cpp122 Vector<SVGGradientStop> m_stops = attributes.stops(); in buildGradient() local
124 for (unsigned i = 0; i < m_stops.size(); ++i) { in buildGradient()
125 float offset = std::min(std::max(previousOffset, m_stops[i].first), 1.0f); in buildGradient()
127 gradient->addColorStop(offset, m_stops[i].second); in buildGradient()
/external/webkit/WebCore/svg/graphics/
DSVGPaintServerGradient.h64 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/
DGradientAndroid.cpp78 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/
DGradientQt.cpp55 Vector<ColorStop>::iterator stopIterator = m_stops.begin(); in platformGradient()
58 while (stopIterator != m_stops.end()) { in platformGradient()
/external/webkit/WebCore/platform/graphics/cairo/
DGradientCairo.cpp54 Vector<ColorStop>::iterator stopIterator = m_stops.begin(); in platformGradient()
55 while (stopIterator != m_stops.end()) { in platformGradient()