| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 | 107 |
| 108 bool isPending() const { return false; } | 108 bool isPending() const { return false; } |
| 109 bool knownToBeOpaque(const LayoutObject&) const; | 109 bool knownToBeOpaque(const LayoutObject&) const; |
| 110 | 110 |
| 111 void loadSubimages(const Document&) {} | 111 void loadSubimages(const Document&) {} |
| 112 | 112 |
| 113 void getStopColors(Vector<Color>& stopColors, const LayoutObject&) const; | 113 void getStopColors(Vector<Color>& stopColors, const LayoutObject&) const; |
| 114 | 114 |
| 115 DECLARE_TRACE_AFTER_DISPATCH(); | 115 DECLARE_TRACE_AFTER_DISPATCH(); |
| 116 | 116 |
| 117 struct GradientDesc; |
| 118 |
| 117 protected: | 119 protected: |
| 118 CSSGradientValue(ClassType classType, | 120 CSSGradientValue(ClassType classType, |
| 119 CSSGradientRepeat repeat, | 121 CSSGradientRepeat repeat, |
| 120 CSSGradientType gradientType) | 122 CSSGradientType gradientType) |
| 121 : CSSImageGeneratorValue(classType), | 123 : CSSImageGeneratorValue(classType), |
| 122 m_stopsSorted(false), | 124 m_stopsSorted(false), |
| 123 m_gradientType(gradientType), | 125 m_gradientType(gradientType), |
| 124 m_repeating(repeat == Repeating) {} | 126 m_repeating(repeat == Repeating) {} |
| 125 | 127 |
| 126 void addStops(Gradient*, | 128 void addStops(GradientDesc&, |
| 127 const CSSToLengthConversionData&, | 129 const CSSToLengthConversionData&, |
| 128 const LayoutObject&); | 130 const LayoutObject&); |
| 129 void addDeprecatedStops(Gradient*, const LayoutObject&); | 131 void addDeprecatedStops(GradientDesc&, const LayoutObject&); |
| 130 | 132 |
| 131 // Resolve points/radii to front end values. | 133 // Resolve points/radii to front end values. |
| 132 FloatPoint computeEndPoint(CSSValue*, | 134 FloatPoint computeEndPoint(CSSValue*, |
| 133 CSSValue*, | 135 CSSValue*, |
| 134 const CSSToLengthConversionData&, | 136 const CSSToLengthConversionData&, |
| 135 const IntSize&); | 137 const IntSize&); |
| 136 | 138 |
| 137 bool isCacheable() const; | 139 bool isCacheable() const; |
| 138 | 140 |
| 139 // Points. Some of these may be null. | 141 // Points. Some of these may be null. |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 | 236 |
| 235 Member<CSSPrimitiveValue> m_endHorizontalSize; | 237 Member<CSSPrimitiveValue> m_endHorizontalSize; |
| 236 Member<CSSPrimitiveValue> m_endVerticalSize; | 238 Member<CSSPrimitiveValue> m_endVerticalSize; |
| 237 }; | 239 }; |
| 238 | 240 |
| 239 DEFINE_CSS_VALUE_TYPE_CASTS(CSSRadialGradientValue, isRadialGradientValue()); | 241 DEFINE_CSS_VALUE_TYPE_CASTS(CSSRadialGradientValue, isRadialGradientValue()); |
| 240 | 242 |
| 241 } // namespace blink | 243 } // namespace blink |
| 242 | 244 |
| 243 #endif // CSSGradientValue_h | 245 #endif // CSSGradientValue_h |
| OLD | NEW |