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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 case PaintClass: | 196 case PaintClass: |
197 return toCSSPaintValue(this)->knownToBeOpaque(layoutObject); | 197 return toCSSPaintValue(this)->knownToBeOpaque(layoutObject); |
198 case RadialGradientClass: | 198 case RadialGradientClass: |
199 return toCSSRadialGradientValue(this)->knownToBeOpaque(layoutObject); | 199 return toCSSRadialGradientValue(this)->knownToBeOpaque(layoutObject); |
200 default: | 200 default: |
201 ASSERT_NOT_REACHED(); | 201 ASSERT_NOT_REACHED(); |
202 } | 202 } |
203 return false; | 203 return false; |
204 } | 204 } |
205 | 205 |
206 void CSSImageGeneratorValue::loadSubimages(Document* document) | 206 void CSSImageGeneratorValue::loadSubimages(const Document& document) |
207 { | 207 { |
208 switch (getClassType()) { | 208 switch (getClassType()) { |
209 case CrossfadeClass: | 209 case CrossfadeClass: |
210 toCSSCrossfadeValue(this)->loadSubimages(document); | 210 toCSSCrossfadeValue(this)->loadSubimages(document); |
211 break; | 211 break; |
212 case LinearGradientClass: | 212 case LinearGradientClass: |
213 toCSSLinearGradientValue(this)->loadSubimages(document); | 213 toCSSLinearGradientValue(this)->loadSubimages(document); |
214 break; | 214 break; |
215 case PaintClass: | 215 case PaintClass: |
216 toCSSPaintValue(this)->loadSubimages(document); | 216 toCSSPaintValue(this)->loadSubimages(document); |
217 break; | 217 break; |
218 case RadialGradientClass: | 218 case RadialGradientClass: |
219 toCSSRadialGradientValue(this)->loadSubimages(document); | 219 toCSSRadialGradientValue(this)->loadSubimages(document); |
220 break; | 220 break; |
221 default: | 221 default: |
222 ASSERT_NOT_REACHED(); | 222 ASSERT_NOT_REACHED(); |
223 } | 223 } |
224 } | 224 } |
225 | 225 |
226 } // namespace blink | 226 } // namespace blink |
OLD | NEW |