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 20 matching lines...) Expand all Loading... |
31 #include "core/css/CSSAspectRatioValue.h" | 31 #include "core/css/CSSAspectRatioValue.h" |
32 #include "core/css/CSSBorderImageSliceValue.h" | 32 #include "core/css/CSSBorderImageSliceValue.h" |
33 #include "core/css/CSSCalculationValue.h" | 33 #include "core/css/CSSCalculationValue.h" |
34 #include "core/css/CSSCanvasValue.h" | 34 #include "core/css/CSSCanvasValue.h" |
35 #include "core/css/CSSCrossfadeValue.h" | 35 #include "core/css/CSSCrossfadeValue.h" |
36 #include "core/css/CSSCursorImageValue.h" | 36 #include "core/css/CSSCursorImageValue.h" |
37 #include "core/css/CSSFilterValue.h" | 37 #include "core/css/CSSFilterValue.h" |
38 #include "core/css/CSSFontFaceSrcValue.h" | 38 #include "core/css/CSSFontFaceSrcValue.h" |
39 #include "core/css/CSSFunctionValue.h" | 39 #include "core/css/CSSFunctionValue.h" |
40 #include "core/css/CSSGradientValue.h" | 40 #include "core/css/CSSGradientValue.h" |
| 41 #include "core/css/CSSGridTemplateValue.h" |
41 #include "core/css/CSSImageSetValue.h" | 42 #include "core/css/CSSImageSetValue.h" |
42 #include "core/css/CSSImageValue.h" | 43 #include "core/css/CSSImageValue.h" |
43 #include "core/css/CSSInheritedValue.h" | 44 #include "core/css/CSSInheritedValue.h" |
44 #include "core/css/CSSInitialValue.h" | 45 #include "core/css/CSSInitialValue.h" |
45 #include "core/css/CSSLineBoxContainValue.h" | 46 #include "core/css/CSSLineBoxContainValue.h" |
46 #include "core/css/CSSMixFunctionValue.h" | 47 #include "core/css/CSSMixFunctionValue.h" |
47 #include "core/css/CSSPrimitiveValue.h" | 48 #include "core/css/CSSPrimitiveValue.h" |
48 #include "core/css/CSSReflectValue.h" | 49 #include "core/css/CSSReflectValue.h" |
49 #include "core/css/CSSSVGDocumentValue.h" | 50 #include "core/css/CSSSVGDocumentValue.h" |
50 #include "core/css/CSSShaderValue.h" | 51 #include "core/css/CSSShaderValue.h" |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 return; | 195 return; |
195 case FontClass: | 196 case FontClass: |
196 static_cast<const FontValue*>(this)->reportDescendantMemoryUsage(memoryO
bjectInfo); | 197 static_cast<const FontValue*>(this)->reportDescendantMemoryUsage(memoryO
bjectInfo); |
197 return; | 198 return; |
198 case FontFaceSrcClass: | 199 case FontFaceSrcClass: |
199 static_cast<const CSSFontFaceSrcValue*>(this)->reportDescendantMemoryUsa
ge(memoryObjectInfo); | 200 static_cast<const CSSFontFaceSrcValue*>(this)->reportDescendantMemoryUsa
ge(memoryObjectInfo); |
200 return; | 201 return; |
201 case FunctionClass: | 202 case FunctionClass: |
202 static_cast<const CSSFunctionValue*>(this)->reportDescendantMemoryUsage(
memoryObjectInfo); | 203 static_cast<const CSSFunctionValue*>(this)->reportDescendantMemoryUsage(
memoryObjectInfo); |
203 return; | 204 return; |
| 205 case GridTemplateClass: |
| 206 static_cast<const CSSGridTemplateValue*>(this)->reportDescendantMemoryUs
age(memoryObjectInfo); |
| 207 return; |
204 case InheritedClass: | 208 case InheritedClass: |
205 static_cast<const CSSInheritedValue*>(this)->reportDescendantMemoryUsage
(memoryObjectInfo); | 209 static_cast<const CSSInheritedValue*>(this)->reportDescendantMemoryUsage
(memoryObjectInfo); |
206 return; | 210 return; |
207 case InitialClass: | 211 case InitialClass: |
208 static_cast<const CSSInitialValue*>(this)->reportDescendantMemoryUsage(m
emoryObjectInfo); | 212 static_cast<const CSSInitialValue*>(this)->reportDescendantMemoryUsage(m
emoryObjectInfo); |
209 return; | 213 return; |
210 case ReflectClass: | 214 case ReflectClass: |
211 static_cast<const CSSReflectValue*>(this)->reportDescendantMemoryUsage(m
emoryObjectInfo); | 215 static_cast<const CSSReflectValue*>(this)->reportDescendantMemoryUsage(m
emoryObjectInfo); |
212 return; | 216 return; |
213 case ShadowClass: | 217 case ShadowClass: |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 case RadialGradientClass: | 299 case RadialGradientClass: |
296 return compareCSSValues<CSSRadialGradientValue>(*this, other); | 300 return compareCSSValues<CSSRadialGradientValue>(*this, other); |
297 case CrossfadeClass: | 301 case CrossfadeClass: |
298 return compareCSSValues<CSSCrossfadeValue>(*this, other); | 302 return compareCSSValues<CSSCrossfadeValue>(*this, other); |
299 case ImageClass: | 303 case ImageClass: |
300 return compareCSSValues<CSSImageValue>(*this, other); | 304 return compareCSSValues<CSSImageValue>(*this, other); |
301 case InheritedClass: | 305 case InheritedClass: |
302 return compareCSSValues<CSSInheritedValue>(*this, other); | 306 return compareCSSValues<CSSInheritedValue>(*this, other); |
303 case InitialClass: | 307 case InitialClass: |
304 return compareCSSValues<CSSInitialValue>(*this, other); | 308 return compareCSSValues<CSSInitialValue>(*this, other); |
| 309 case GridTemplateClass: |
| 310 return compareCSSValues<CSSGridTemplateValue>(*this, other); |
305 case PrimitiveClass: | 311 case PrimitiveClass: |
306 return compareCSSValues<CSSPrimitiveValue>(*this, other); | 312 return compareCSSValues<CSSPrimitiveValue>(*this, other); |
307 case ReflectClass: | 313 case ReflectClass: |
308 return compareCSSValues<CSSReflectValue>(*this, other); | 314 return compareCSSValues<CSSReflectValue>(*this, other); |
309 case ShadowClass: | 315 case ShadowClass: |
310 return compareCSSValues<ShadowValue>(*this, other); | 316 return compareCSSValues<ShadowValue>(*this, other); |
311 case LinearTimingFunctionClass: | 317 case LinearTimingFunctionClass: |
312 return compareCSSValues<CSSLinearTimingFunctionValue>(*this, other); | 318 return compareCSSValues<CSSLinearTimingFunctionValue>(*this, other); |
313 case CubicBezierTimingFunctionClass: | 319 case CubicBezierTimingFunctionClass: |
314 return compareCSSValues<CSSCubicBezierTimingFunctionValue>(*this, ot
her); | 320 return compareCSSValues<CSSCubicBezierTimingFunctionValue>(*this, ot
her); |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 case RadialGradientClass: | 389 case RadialGradientClass: |
384 return static_cast<const CSSRadialGradientValue*>(this)->customCssText()
; | 390 return static_cast<const CSSRadialGradientValue*>(this)->customCssText()
; |
385 case CrossfadeClass: | 391 case CrossfadeClass: |
386 return static_cast<const CSSCrossfadeValue*>(this)->customCssText(); | 392 return static_cast<const CSSCrossfadeValue*>(this)->customCssText(); |
387 case ImageClass: | 393 case ImageClass: |
388 return toCSSImageValue(this)->customCssText(); | 394 return toCSSImageValue(this)->customCssText(); |
389 case InheritedClass: | 395 case InheritedClass: |
390 return static_cast<const CSSInheritedValue*>(this)->customCssText(); | 396 return static_cast<const CSSInheritedValue*>(this)->customCssText(); |
391 case InitialClass: | 397 case InitialClass: |
392 return static_cast<const CSSInitialValue*>(this)->customCssText(); | 398 return static_cast<const CSSInitialValue*>(this)->customCssText(); |
| 399 case GridTemplateClass: |
| 400 return static_cast<const CSSGridTemplateValue*>(this)->customCssText(); |
393 case PrimitiveClass: | 401 case PrimitiveClass: |
394 return toCSSPrimitiveValue(this)->customCssText(); | 402 return toCSSPrimitiveValue(this)->customCssText(); |
395 case ReflectClass: | 403 case ReflectClass: |
396 return static_cast<const CSSReflectValue*>(this)->customCssText(); | 404 return static_cast<const CSSReflectValue*>(this)->customCssText(); |
397 case ShadowClass: | 405 case ShadowClass: |
398 return static_cast<const ShadowValue*>(this)->customCssText(); | 406 return static_cast<const ShadowValue*>(this)->customCssText(); |
399 case LinearTimingFunctionClass: | 407 case LinearTimingFunctionClass: |
400 return static_cast<const CSSLinearTimingFunctionValue*>(this)->customCss
Text(); | 408 return static_cast<const CSSLinearTimingFunctionValue*>(this)->customCss
Text(); |
401 case CubicBezierTimingFunctionClass: | 409 case CubicBezierTimingFunctionClass: |
402 return static_cast<const CSSCubicBezierTimingFunctionValue*>(this)->cust
omCssText(); | 410 return static_cast<const CSSCubicBezierTimingFunctionValue*>(this)->cust
omCssText(); |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 return; | 504 return; |
497 case ImageClass: | 505 case ImageClass: |
498 delete toCSSImageValue(this); | 506 delete toCSSImageValue(this); |
499 return; | 507 return; |
500 case InheritedClass: | 508 case InheritedClass: |
501 delete static_cast<CSSInheritedValue*>(this); | 509 delete static_cast<CSSInheritedValue*>(this); |
502 return; | 510 return; |
503 case InitialClass: | 511 case InitialClass: |
504 delete static_cast<CSSInitialValue*>(this); | 512 delete static_cast<CSSInitialValue*>(this); |
505 return; | 513 return; |
| 514 case GridTemplateClass: |
| 515 delete static_cast<CSSGridTemplateValue*>(this); |
| 516 return; |
506 case PrimitiveClass: | 517 case PrimitiveClass: |
507 delete toCSSPrimitiveValue(this); | 518 delete toCSSPrimitiveValue(this); |
508 return; | 519 return; |
509 case ReflectClass: | 520 case ReflectClass: |
510 delete static_cast<CSSReflectValue*>(this); | 521 delete static_cast<CSSReflectValue*>(this); |
511 return; | 522 return; |
512 case ShadowClass: | 523 case ShadowClass: |
513 delete static_cast<ShadowValue*>(this); | 524 delete static_cast<ShadowValue*>(this); |
514 return; | 525 return; |
515 case LinearTimingFunctionClass: | 526 case LinearTimingFunctionClass: |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 return static_cast<const SVGColor*>(this)->cloneForCSSOM(); | 602 return static_cast<const SVGColor*>(this)->cloneForCSSOM(); |
592 case SVGPaintClass: | 603 case SVGPaintClass: |
593 return static_cast<const SVGPaint*>(this)->cloneForCSSOM(); | 604 return static_cast<const SVGPaint*>(this)->cloneForCSSOM(); |
594 default: | 605 default: |
595 ASSERT(!isSubtypeExposedToCSSOM()); | 606 ASSERT(!isSubtypeExposedToCSSOM()); |
596 return TextCloneCSSValue::create(classType(), cssText()); | 607 return TextCloneCSSValue::create(classType(), cssText()); |
597 } | 608 } |
598 } | 609 } |
599 | 610 |
600 } | 611 } |
OLD | NEW |