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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 { | 333 { |
334 if (m_isTextClone) { | 334 if (m_isTextClone) { |
335 ASSERT(isCSSOMSafe()); | 335 ASSERT(isCSSOMSafe()); |
336 delete static_cast<TextCloneCSSValue*>(this); | 336 delete static_cast<TextCloneCSSValue*>(this); |
337 return; | 337 return; |
338 } | 338 } |
339 ASSERT(!isCSSOMSafe() || isSubtypeExposedToCSSOM()); | 339 ASSERT(!isCSSOMSafe() || isSubtypeExposedToCSSOM()); |
340 | 340 |
341 switch (classType()) { | 341 switch (classType()) { |
342 case AspectRatioClass: | 342 case AspectRatioClass: |
343 delete static_cast<CSSAspectRatioValue*>(this); | 343 delete toCSSAspectRatioValue(this); |
344 return; | 344 return; |
345 case BorderImageSliceClass: | 345 case BorderImageSliceClass: |
346 delete static_cast<CSSBorderImageSliceValue*>(this); | 346 delete toCSSBorderImageSliceValue(this); |
347 return; | 347 return; |
348 case CanvasClass: | 348 case CanvasClass: |
349 delete static_cast<CSSCanvasValue*>(this); | 349 delete static_cast<CSSCanvasValue*>(this); |
350 return; | 350 return; |
351 case CursorImageClass: | 351 case CursorImageClass: |
352 delete static_cast<CSSCursorImageValue*>(this); | 352 delete static_cast<CSSCursorImageValue*>(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; |
(...skipping 112 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 |