Changeset 70389 in webkit
- Timestamp:
- Oct 23, 2010 8:08:40 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r70388 r70389 1 2010-10-23 Patrick Gansterer <paroga@webkit.org> 2 3 Reviewed by David Kilzer. 4 5 Add Gradient::hasAlpha 6 https://bugs.webkit.org/show_bug.cgi?id=48183 7 8 WinCE can do some performance improvements if the gradient is opaque. 9 10 * platform/graphics/Gradient.cpp: 11 (WebCore::Gradient::hasAlpha): 12 * platform/graphics/Gradient.h: 13 1 14 2010-10-23 Gyuyoung Kim <gyuyoung.kim@samsung.com> 2 15 -
trunk/WebCore/platform/graphics/Gradient.cpp
r67804 r70389 197 197 } 198 198 199 bool Gradient::hasAlpha() const 200 { 201 for (size_t i = 0; i < m_stops.size(); i++) { 202 if (m_stops[i].alpha < 1) 203 return true; 204 } 205 206 return false; 207 } 208 199 209 void Gradient::setSpreadMethod(GradientSpreadMethod spreadMethod) 200 210 { -
trunk/WebCore/platform/graphics/Gradient.h
r67816 r70389 88 88 89 89 void getColor(float value, float* r, float* g, float* b, float* a) const; 90 bool hasAlpha() const; 90 91 91 92 bool isRadial() const { return m_radial; }
Note: See TracChangeset
for help on using the changeset viewer.