| 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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 case SVGPaintClass: | 390 case SVGPaintClass: |
| 391 delete toSVGPaint(this); | 391 delete toSVGPaint(this); |
| 392 return; | 392 return; |
| 393 case CSSSVGDocumentClass: | 393 case CSSSVGDocumentClass: |
| 394 delete toCSSSVGDocumentValue(this); | 394 delete toCSSSVGDocumentValue(this); |
| 395 return; | 395 return; |
| 396 } | 396 } |
| 397 ASSERT_NOT_REACHED(); | 397 ASSERT_NOT_REACHED(); |
| 398 } | 398 } |
| 399 | 399 |
| 400 void CSSValue::finalize() | 400 void CSSValue::finalizeGarbageCollectedObject() |
| 401 { | 401 { |
| 402 if (m_isTextClone) { | 402 if (m_isTextClone) { |
| 403 ASSERT(isCSSOMSafe()); | 403 ASSERT(isCSSOMSafe()); |
| 404 static_cast<TextCloneCSSValue*>(this)->~TextCloneCSSValue(); | 404 static_cast<TextCloneCSSValue*>(this)->~TextCloneCSSValue(); |
| 405 return; | 405 return; |
| 406 } | 406 } |
| 407 ASSERT(!isCSSOMSafe() || isSubtypeExposedToCSSOM()); | 407 ASSERT(!isCSSOMSafe() || isSubtypeExposedToCSSOM()); |
| 408 | 408 |
| 409 switch (classType()) { | 409 switch (classType()) { |
| 410 case AspectRatioClass: | 410 case AspectRatioClass: |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 return toCSSImageSetValue(this)->cloneForCSSOM(); | 631 return toCSSImageSetValue(this)->cloneForCSSOM(); |
| 632 case SVGPaintClass: | 632 case SVGPaintClass: |
| 633 return toSVGPaint(this)->cloneForCSSOM(); | 633 return toSVGPaint(this)->cloneForCSSOM(); |
| 634 default: | 634 default: |
| 635 ASSERT(!isSubtypeExposedToCSSOM()); | 635 ASSERT(!isSubtypeExposedToCSSOM()); |
| 636 return TextCloneCSSValue::create(classType(), cssText()); | 636 return TextCloneCSSValue::create(classType(), cssText()); |
| 637 } | 637 } |
| 638 } | 638 } |
| 639 | 639 |
| 640 } | 640 } |
| OLD | NEW |