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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 case RadialGradientClass: | 369 case RadialGradientClass: |
370 delete static_cast<CSSRadialGradientValue*>(this); | 370 delete static_cast<CSSRadialGradientValue*>(this); |
371 return; | 371 return; |
372 case CrossfadeClass: | 372 case CrossfadeClass: |
373 delete static_cast<CSSCrossfadeValue*>(this); | 373 delete static_cast<CSSCrossfadeValue*>(this); |
374 return; | 374 return; |
375 case ImageClass: | 375 case ImageClass: |
376 delete toCSSImageValue(this); | 376 delete toCSSImageValue(this); |
377 return; | 377 return; |
378 case InheritedClass: | 378 case InheritedClass: |
379 delete static_cast<CSSInheritedValue*>(this); | 379 delete toCSSInheritedValue(this); |
380 return; | 380 return; |
381 case InitialClass: | 381 case InitialClass: |
382 delete static_cast<CSSInitialValue*>(this); | 382 delete static_cast<CSSInitialValue*>(this); |
383 return; | 383 return; |
384 case GridTemplateClass: | 384 case GridTemplateClass: |
385 delete static_cast<CSSGridTemplateValue*>(this); | 385 delete toCSSGridTemplateValue(this); |
386 return; | 386 return; |
387 case PrimitiveClass: | 387 case PrimitiveClass: |
388 delete toCSSPrimitiveValue(this); | 388 delete toCSSPrimitiveValue(this); |
389 return; | 389 return; |
390 case ReflectClass: | 390 case ReflectClass: |
391 delete toCSSReflectValue(this); | 391 delete toCSSReflectValue(this); |
392 return; | 392 return; |
393 case ShadowClass: | 393 case ShadowClass: |
394 delete static_cast<ShadowValue*>(this); | 394 delete static_cast<ShadowValue*>(this); |
395 return; | 395 return; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 return static_cast<const SVGColor*>(this)->cloneForCSSOM(); | 469 return static_cast<const SVGColor*>(this)->cloneForCSSOM(); |
470 case SVGPaintClass: | 470 case SVGPaintClass: |
471 return static_cast<const SVGPaint*>(this)->cloneForCSSOM(); | 471 return static_cast<const SVGPaint*>(this)->cloneForCSSOM(); |
472 default: | 472 default: |
473 ASSERT(!isSubtypeExposedToCSSOM()); | 473 ASSERT(!isSubtypeExposedToCSSOM()); |
474 return TextCloneCSSValue::create(classType(), cssText()); | 474 return TextCloneCSSValue::create(classType(), cssText()); |
475 } | 475 } |
476 } | 476 } |
477 | 477 |
478 } | 478 } |
OLD | NEW |