| 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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 case FontClass: | 354 case FontClass: |
| 355 delete static_cast<FontValue*>(this); | 355 delete static_cast<FontValue*>(this); |
| 356 return; | 356 return; |
| 357 case FontFaceSrcClass: | 357 case FontFaceSrcClass: |
| 358 delete toCSSFontFaceSrcValue(this); | 358 delete toCSSFontFaceSrcValue(this); |
| 359 return; | 359 return; |
| 360 case FontFeatureClass: | 360 case FontFeatureClass: |
| 361 delete static_cast<FontFeatureValue*>(this); | 361 delete static_cast<FontFeatureValue*>(this); |
| 362 return; | 362 return; |
| 363 case FunctionClass: | 363 case FunctionClass: |
| 364 delete static_cast<CSSFunctionValue*>(this); | 364 delete toCSSFunctionValue(this); |
| 365 return; | 365 return; |
| 366 case LinearGradientClass: | 366 case LinearGradientClass: |
| 367 delete static_cast<CSSLinearGradientValue*>(this); | 367 delete static_cast<CSSLinearGradientValue*>(this); |
| 368 return; | 368 return; |
| 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; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 case VariableClass: | 432 case VariableClass: |
| 433 delete toCSSVariableValue(this); | 433 delete toCSSVariableValue(this); |
| 434 return; | 434 return; |
| 435 case SVGColorClass: | 435 case SVGColorClass: |
| 436 delete static_cast<SVGColor*>(this); | 436 delete static_cast<SVGColor*>(this); |
| 437 return; | 437 return; |
| 438 case SVGPaintClass: | 438 case SVGPaintClass: |
| 439 delete static_cast<SVGPaint*>(this); | 439 delete static_cast<SVGPaint*>(this); |
| 440 return; | 440 return; |
| 441 case CSSSVGDocumentClass: | 441 case CSSSVGDocumentClass: |
| 442 delete static_cast<CSSSVGDocumentValue*>(this); | 442 delete toCSSSVGDocumentValue(this); |
| 443 return; | 443 return; |
| 444 } | 444 } |
| 445 ASSERT_NOT_REACHED(); | 445 ASSERT_NOT_REACHED(); |
| 446 } | 446 } |
| 447 | 447 |
| 448 PassRefPtr<CSSValue> CSSValue::cloneForCSSOM() const | 448 PassRefPtr<CSSValue> CSSValue::cloneForCSSOM() const |
| 449 { | 449 { |
| 450 switch (classType()) { | 450 switch (classType()) { |
| 451 case PrimitiveClass: | 451 case PrimitiveClass: |
| 452 return toCSSPrimitiveValue(this)->cloneForCSSOM(); | 452 return toCSSPrimitiveValue(this)->cloneForCSSOM(); |
| (...skipping 16 matching lines...) Expand all 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 |