OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Andreas Kling (kling@webkit.org) | 2 * Copyright (C) 2011 Andreas Kling (kling@webkit.org) |
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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 case InitialClass: | 181 case InitialClass: |
182 return compareCSSValues<CSSInitialValue>(*this, other); | 182 return compareCSSValues<CSSInitialValue>(*this, other); |
183 case GridTemplateClass: | 183 case GridTemplateClass: |
184 return compareCSSValues<CSSGridTemplateValue>(*this, other); | 184 return compareCSSValues<CSSGridTemplateValue>(*this, other); |
185 case PrimitiveClass: | 185 case PrimitiveClass: |
186 return compareCSSValues<CSSPrimitiveValue>(*this, other); | 186 return compareCSSValues<CSSPrimitiveValue>(*this, other); |
187 case ReflectClass: | 187 case ReflectClass: |
188 return compareCSSValues<CSSReflectValue>(*this, other); | 188 return compareCSSValues<CSSReflectValue>(*this, other); |
189 case ShadowClass: | 189 case ShadowClass: |
190 return compareCSSValues<ShadowValue>(*this, other); | 190 return compareCSSValues<ShadowValue>(*this, other); |
191 case LinearTimingFunctionClass: | |
192 return compareCSSValues<CSSLinearTimingFunctionValue>(*this, other); | |
193 case CubicBezierTimingFunctionClass: | 191 case CubicBezierTimingFunctionClass: |
194 return compareCSSValues<CSSCubicBezierTimingFunctionValue>(*this, ot
her); | 192 return compareCSSValues<CSSCubicBezierTimingFunctionValue>(*this, ot
her); |
195 case StepsTimingFunctionClass: | 193 case StepsTimingFunctionClass: |
196 return compareCSSValues<CSSStepsTimingFunctionValue>(*this, other); | 194 return compareCSSValues<CSSStepsTimingFunctionValue>(*this, other); |
197 case UnicodeRangeClass: | 195 case UnicodeRangeClass: |
198 return compareCSSValues<CSSUnicodeRangeValue>(*this, other); | 196 return compareCSSValues<CSSUnicodeRangeValue>(*this, other); |
199 case ValueListClass: | 197 case ValueListClass: |
200 return compareCSSValues<CSSValueList>(*this, other); | 198 return compareCSSValues<CSSValueList>(*this, other); |
201 case CSSTransformClass: | 199 case CSSTransformClass: |
202 return compareCSSValues<CSSTransformValue>(*this, other); | 200 return compareCSSValues<CSSTransformValue>(*this, other); |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 case InitialClass: | 269 case InitialClass: |
272 return static_cast<const CSSInitialValue*>(this)->customCssText(); | 270 return static_cast<const CSSInitialValue*>(this)->customCssText(); |
273 case GridTemplateClass: | 271 case GridTemplateClass: |
274 return static_cast<const CSSGridTemplateValue*>(this)->customCssText(); | 272 return static_cast<const CSSGridTemplateValue*>(this)->customCssText(); |
275 case PrimitiveClass: | 273 case PrimitiveClass: |
276 return toCSSPrimitiveValue(this)->customCssText(); | 274 return toCSSPrimitiveValue(this)->customCssText(); |
277 case ReflectClass: | 275 case ReflectClass: |
278 return static_cast<const CSSReflectValue*>(this)->customCssText(); | 276 return static_cast<const CSSReflectValue*>(this)->customCssText(); |
279 case ShadowClass: | 277 case ShadowClass: |
280 return static_cast<const ShadowValue*>(this)->customCssText(); | 278 return static_cast<const ShadowValue*>(this)->customCssText(); |
281 case LinearTimingFunctionClass: | |
282 return static_cast<const CSSLinearTimingFunctionValue*>(this)->customCss
Text(); | |
283 case CubicBezierTimingFunctionClass: | 279 case CubicBezierTimingFunctionClass: |
284 return static_cast<const CSSCubicBezierTimingFunctionValue*>(this)->cust
omCssText(); | 280 return static_cast<const CSSCubicBezierTimingFunctionValue*>(this)->cust
omCssText(); |
285 case StepsTimingFunctionClass: | 281 case StepsTimingFunctionClass: |
286 return static_cast<const CSSStepsTimingFunctionValue*>(this)->customCssT
ext(); | 282 return static_cast<const CSSStepsTimingFunctionValue*>(this)->customCssT
ext(); |
287 case UnicodeRangeClass: | 283 case UnicodeRangeClass: |
288 return static_cast<const CSSUnicodeRangeValue*>(this)->customCssText(); | 284 return static_cast<const CSSUnicodeRangeValue*>(this)->customCssText(); |
289 case ValueListClass: | 285 case ValueListClass: |
290 return toCSSValueList(this)->customCssText(); | 286 return toCSSValueList(this)->customCssText(); |
291 case CSSTransformClass: | 287 case CSSTransformClass: |
292 return static_cast<const CSSTransformValue*>(this)->customCssText(); | 288 return static_cast<const CSSTransformValue*>(this)->customCssText(); |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 return; | 386 return; |
391 case PrimitiveClass: | 387 case PrimitiveClass: |
392 delete toCSSPrimitiveValue(this); | 388 delete toCSSPrimitiveValue(this); |
393 return; | 389 return; |
394 case ReflectClass: | 390 case ReflectClass: |
395 delete static_cast<CSSReflectValue*>(this); | 391 delete static_cast<CSSReflectValue*>(this); |
396 return; | 392 return; |
397 case ShadowClass: | 393 case ShadowClass: |
398 delete static_cast<ShadowValue*>(this); | 394 delete static_cast<ShadowValue*>(this); |
399 return; | 395 return; |
400 case LinearTimingFunctionClass: | |
401 delete static_cast<CSSLinearTimingFunctionValue*>(this); | |
402 return; | |
403 case CubicBezierTimingFunctionClass: | 396 case CubicBezierTimingFunctionClass: |
404 delete static_cast<CSSCubicBezierTimingFunctionValue*>(this); | 397 delete static_cast<CSSCubicBezierTimingFunctionValue*>(this); |
405 return; | 398 return; |
406 case StepsTimingFunctionClass: | 399 case StepsTimingFunctionClass: |
407 delete static_cast<CSSStepsTimingFunctionValue*>(this); | 400 delete static_cast<CSSStepsTimingFunctionValue*>(this); |
408 return; | 401 return; |
409 case UnicodeRangeClass: | 402 case UnicodeRangeClass: |
410 delete static_cast<CSSUnicodeRangeValue*>(this); | 403 delete static_cast<CSSUnicodeRangeValue*>(this); |
411 return; | 404 return; |
412 case ValueListClass: | 405 case ValueListClass: |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 return static_cast<const SVGColor*>(this)->cloneForCSSOM(); | 469 return static_cast<const SVGColor*>(this)->cloneForCSSOM(); |
477 case SVGPaintClass: | 470 case SVGPaintClass: |
478 return static_cast<const SVGPaint*>(this)->cloneForCSSOM(); | 471 return static_cast<const SVGPaint*>(this)->cloneForCSSOM(); |
479 default: | 472 default: |
480 ASSERT(!isSubtypeExposedToCSSOM()); | 473 ASSERT(!isSubtypeExposedToCSSOM()); |
481 return TextCloneCSSValue::create(classType(), cssText()); | 474 return TextCloneCSSValue::create(classType(), cssText()); |
482 } | 475 } |
483 } | 476 } |
484 | 477 |
485 } | 478 } |
OLD | NEW |