|
Lines 77-85
protected:
a/Source/WebCore/css/CSSGradientValue.h_sec1
|
| 77 |
|
77 |
|
| 78 |
void addStops(Gradient*, RenderObject*, RenderStyle* rootStyle, float maxLengthForRepeat = 0); |
78 |
void addStops(Gradient*, RenderObject*, RenderStyle* rootStyle, float maxLengthForRepeat = 0); |
| 79 |
|
79 |
|
| 80 |
// Create the gradient for a given size. |
|
|
| 81 |
virtual PassRefPtr<Gradient> createGradient(RenderObject*, const IntSize&) = 0; |
| 82 |
|
| 83 |
// Resolve points/radii to front end values. |
80 |
// Resolve points/radii to front end values. |
| 84 |
FloatPoint computeEndPoint(CSSPrimitiveValue*, CSSPrimitiveValue*, RenderStyle*, RenderStyle* rootStyle, const IntSize&); |
81 |
FloatPoint computeEndPoint(CSSPrimitiveValue*, CSSPrimitiveValue*, RenderStyle*, RenderStyle* rootStyle, const IntSize&); |
| 85 |
|
82 |
|
|
Lines 111-125
public:
a/Source/WebCore/css/CSSGradientValue.h_sec2
|
| 111 |
|
108 |
|
| 112 |
virtual String cssText() const; |
109 |
virtual String cssText() const; |
| 113 |
|
110 |
|
|
|
111 |
// Create the gradient for a given size. |
| 112 |
PassRefPtr<Gradient> createGradient(RenderObject*, const IntSize&); |
| 113 |
|
| 114 |
private: |
114 |
private: |
| 115 |
CSSLinearGradientValue(CSSGradientRepeat repeat, bool deprecatedType = false) |
115 |
CSSLinearGradientValue(CSSGradientRepeat repeat, bool deprecatedType = false) |
| 116 |
: CSSGradientValue(LinearGradientClass, repeat, deprecatedType) |
116 |
: CSSGradientValue(LinearGradientClass, repeat, deprecatedType) |
| 117 |
{ |
117 |
{ |
| 118 |
} |
118 |
} |
| 119 |
|
119 |
|
| 120 |
// Create the gradient for a given size. |
|
|
| 121 |
virtual PassRefPtr<Gradient> createGradient(RenderObject*, const IntSize&); |
| 122 |
|
| 123 |
RefPtr<CSSPrimitiveValue> m_angle; // may be null. |
120 |
RefPtr<CSSPrimitiveValue> m_angle; // may be null. |
| 124 |
}; |
121 |
}; |
| 125 |
|
122 |
|
|
Lines 141-155
public:
a/Source/WebCore/css/CSSGradientValue.h_sec3
|
| 141 |
void setEndHorizontalSize(PassRefPtr<CSSPrimitiveValue> val) { m_endHorizontalSize = val; } |
138 |
void setEndHorizontalSize(PassRefPtr<CSSPrimitiveValue> val) { m_endHorizontalSize = val; } |
| 142 |
void setEndVerticalSize(PassRefPtr<CSSPrimitiveValue> val) { m_endVerticalSize = val; } |
139 |
void setEndVerticalSize(PassRefPtr<CSSPrimitiveValue> val) { m_endVerticalSize = val; } |
| 143 |
|
140 |
|
|
|
141 |
// Create the gradient for a given size. |
| 142 |
PassRefPtr<Gradient> createGradient(RenderObject*, const IntSize&); |
| 143 |
|
| 144 |
private: |
144 |
private: |
| 145 |
CSSRadialGradientValue(CSSGradientRepeat repeat, bool deprecatedType = false) |
145 |
CSSRadialGradientValue(CSSGradientRepeat repeat, bool deprecatedType = false) |
| 146 |
: CSSGradientValue(RadialGradientClass, repeat, deprecatedType) |
146 |
: CSSGradientValue(RadialGradientClass, repeat, deprecatedType) |
| 147 |
{ |
147 |
{ |
| 148 |
} |
148 |
} |
| 149 |
|
149 |
|
| 150 |
// Create the gradient for a given size. |
|
|
| 151 |
virtual PassRefPtr<Gradient> createGradient(RenderObject*, const IntSize&); |
| 152 |
|
| 153 |
// Resolve points/radii to front end values. |
150 |
// Resolve points/radii to front end values. |
| 154 |
float resolveRadius(CSSPrimitiveValue*, RenderStyle*, RenderStyle* rootStyle, float* widthOrHeight = 0); |
151 |
float resolveRadius(CSSPrimitiveValue*, RenderStyle*, RenderStyle* rootStyle, float* widthOrHeight = 0); |
| 155 |
|
152 |
|