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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 ASSERT(!isCSSOMSafe() || isSubtypeExposedToCSSOM()); | 339 ASSERT(!isCSSOMSafe() || isSubtypeExposedToCSSOM()); |
340 | 340 |
341 switch (classType()) { | 341 switch (classType()) { |
342 case AspectRatioClass: | 342 case AspectRatioClass: |
343 delete toCSSAspectRatioValue(this); | 343 delete toCSSAspectRatioValue(this); |
344 return; | 344 return; |
345 case BorderImageSliceClass: | 345 case BorderImageSliceClass: |
346 delete toCSSBorderImageSliceValue(this); | 346 delete toCSSBorderImageSliceValue(this); |
347 return; | 347 return; |
348 case CanvasClass: | 348 case CanvasClass: |
349 delete static_cast<CSSCanvasValue*>(this); | 349 delete toCSSCanvasValue(this); |
350 return; | 350 return; |
351 case CursorImageClass: | 351 case CursorImageClass: |
352 delete toCSSCursorImageValue(this); | 352 delete toCSSCursorImageValue(this); |
353 return; | 353 return; |
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 toCSSFunctionValue(this); | 364 delete toCSSFunctionValue(this); |
365 return; | 365 return; |
366 case LinearGradientClass: | 366 case LinearGradientClass: |
367 delete toCSSLinearGradientValue(this); | 367 delete toCSSLinearGradientValue(this); |
368 return; | 368 return; |
369 case RadialGradientClass: | 369 case RadialGradientClass: |
370 delete toCSSRadialGradientValue(this); | 370 delete toCSSRadialGradientValue(this); |
371 return; | 371 return; |
372 case CrossfadeClass: | 372 case CrossfadeClass: |
373 delete static_cast<CSSCrossfadeValue*>(this); | 373 delete toCSSCrossfadeValue(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 toCSSInheritedValue(this); | 379 delete toCSSInheritedValue(this); |
380 return; | 380 return; |
381 case InitialClass: | 381 case InitialClass: |
382 delete static_cast<CSSInitialValue*>(this); | 382 delete toCSSInitialValue(this); |
383 return; | 383 return; |
384 case GridTemplateClass: | 384 case GridTemplateClass: |
385 delete toCSSGridTemplateValue(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; |
396 case CubicBezierTimingFunctionClass: | 396 case CubicBezierTimingFunctionClass: |
397 delete static_cast<CSSCubicBezierTimingFunctionValue*>(this); | 397 delete toCSSCubicBezierTimingFunctionValue(this); |
398 return; | 398 return; |
399 case StepsTimingFunctionClass: | 399 case StepsTimingFunctionClass: |
400 delete static_cast<CSSStepsTimingFunctionValue*>(this); | 400 delete toCSSStepsTimingFunctionValue(this); |
401 return; | 401 return; |
402 case UnicodeRangeClass: | 402 case UnicodeRangeClass: |
403 delete static_cast<CSSUnicodeRangeValue*>(this); | 403 delete toCSSUnicodeRangeValue(this); |
404 return; | 404 return; |
405 case ValueListClass: | 405 case ValueListClass: |
406 delete toCSSValueList(this); | 406 delete toCSSValueList(this); |
407 return; | 407 return; |
408 case CSSTransformClass: | 408 case CSSTransformClass: |
409 delete toCSSTransformValue(this); | 409 delete toCSSTransformValue(this); |
410 return; | 410 return; |
411 case LineBoxContainClass: | 411 case LineBoxContainClass: |
412 delete static_cast<CSSLineBoxContainValue*>(this); | 412 delete toCSSLineBoxContainValue(this); |
413 return; | 413 return; |
414 case CalculationClass: | 414 case CalculationClass: |
415 delete toCSSCalcValue(this); | 415 delete toCSSCalcValue(this); |
416 return; | 416 return; |
417 case ImageSetClass: | 417 case ImageSetClass: |
418 delete toCSSImageSetValue(this); | 418 delete toCSSImageSetValue(this); |
419 return; | 419 return; |
420 case CSSFilterClass: | 420 case CSSFilterClass: |
421 delete toCSSFilterValue(this); | 421 delete toCSSFilterValue(this); |
422 return; | 422 return; |
(...skipping 46 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 |