| 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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 return static_cast<const CSSImageSetValue*>(this)->customCssText(); | 293 return static_cast<const CSSImageSetValue*>(this)->customCssText(); |
| 294 case CSSFilterClass: | 294 case CSSFilterClass: |
| 295 return static_cast<const CSSFilterValue*>(this)->customCssText(); | 295 return static_cast<const CSSFilterValue*>(this)->customCssText(); |
| 296 case CSSArrayFunctionValueClass: | 296 case CSSArrayFunctionValueClass: |
| 297 return static_cast<const CSSArrayFunctionValue*>(this)->customCssText(); | 297 return static_cast<const CSSArrayFunctionValue*>(this)->customCssText(); |
| 298 case CSSMixFunctionValueClass: | 298 case CSSMixFunctionValueClass: |
| 299 return static_cast<const CSSMixFunctionValue*>(this)->customCssText(); | 299 return static_cast<const CSSMixFunctionValue*>(this)->customCssText(); |
| 300 case CSSShaderClass: | 300 case CSSShaderClass: |
| 301 return static_cast<const CSSShaderValue*>(this)->customCssText(); | 301 return static_cast<const CSSShaderValue*>(this)->customCssText(); |
| 302 case VariableClass: | 302 case VariableClass: |
| 303 return static_cast<const CSSVariableValue*>(this)->value(); | 303 return toCSSVariableValue(this)->value(); |
| 304 case SVGColorClass: | 304 case SVGColorClass: |
| 305 return static_cast<const SVGColor*>(this)->customCssText(); | 305 return static_cast<const SVGColor*>(this)->customCssText(); |
| 306 case SVGPaintClass: | 306 case SVGPaintClass: |
| 307 return static_cast<const SVGPaint*>(this)->customCssText(); | 307 return static_cast<const SVGPaint*>(this)->customCssText(); |
| 308 case CSSSVGDocumentClass: | 308 case CSSSVGDocumentClass: |
| 309 return static_cast<const CSSSVGDocumentValue*>(this)->customCssText(); | 309 return static_cast<const CSSSVGDocumentValue*>(this)->customCssText(); |
| 310 } | 310 } |
| 311 ASSERT_NOT_REACHED(); | 311 ASSERT_NOT_REACHED(); |
| 312 return String(); | 312 return String(); |
| 313 } | 313 } |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 case CSSArrayFunctionValueClass: | 422 case CSSArrayFunctionValueClass: |
| 423 delete static_cast<CSSArrayFunctionValue*>(this); | 423 delete static_cast<CSSArrayFunctionValue*>(this); |
| 424 return; | 424 return; |
| 425 case CSSMixFunctionValueClass: | 425 case CSSMixFunctionValueClass: |
| 426 delete static_cast<CSSMixFunctionValue*>(this); | 426 delete static_cast<CSSMixFunctionValue*>(this); |
| 427 return; | 427 return; |
| 428 case CSSShaderClass: | 428 case CSSShaderClass: |
| 429 delete static_cast<CSSShaderValue*>(this); | 429 delete static_cast<CSSShaderValue*>(this); |
| 430 return; | 430 return; |
| 431 case VariableClass: | 431 case VariableClass: |
| 432 delete static_cast<CSSVariableValue*>(this); | 432 delete toCSSVariableValue(this); |
| 433 return; | 433 return; |
| 434 case SVGColorClass: | 434 case SVGColorClass: |
| 435 delete static_cast<SVGColor*>(this); | 435 delete static_cast<SVGColor*>(this); |
| 436 return; | 436 return; |
| 437 case SVGPaintClass: | 437 case SVGPaintClass: |
| 438 delete static_cast<SVGPaint*>(this); | 438 delete static_cast<SVGPaint*>(this); |
| 439 return; | 439 return; |
| 440 case CSSSVGDocumentClass: | 440 case CSSSVGDocumentClass: |
| 441 delete static_cast<CSSSVGDocumentValue*>(this); | 441 delete static_cast<CSSSVGDocumentValue*>(this); |
| 442 return; | 442 return; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 468 return static_cast<const SVGColor*>(this)->cloneForCSSOM(); | 468 return static_cast<const SVGColor*>(this)->cloneForCSSOM(); |
| 469 case SVGPaintClass: | 469 case SVGPaintClass: |
| 470 return static_cast<const SVGPaint*>(this)->cloneForCSSOM(); | 470 return static_cast<const SVGPaint*>(this)->cloneForCSSOM(); |
| 471 default: | 471 default: |
| 472 ASSERT(!isSubtypeExposedToCSSOM()); | 472 ASSERT(!isSubtypeExposedToCSSOM()); |
| 473 return TextCloneCSSValue::create(classType(), cssText()); | 473 return TextCloneCSSValue::create(classType(), cssText()); |
| 474 } | 474 } |
| 475 } | 475 } |
| 476 | 476 |
| 477 } | 477 } |
| OLD | NEW |