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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
254 return toCSSValueList(this)->customCSSText(); | 254 return toCSSValueList(this)->customCSSText(); |
255 case ImageSetClass: | 255 case ImageSetClass: |
256 return toCSSImageSetValue(this)->customCSSText(); | 256 return toCSSImageSetValue(this)->customCSSText(); |
257 case CSSSVGDocumentClass: | 257 case CSSSVGDocumentClass: |
258 return toCSSSVGDocumentValue(this)->customCSSText(); | 258 return toCSSSVGDocumentValue(this)->customCSSText(); |
259 case CSSContentDistributionClass: | 259 case CSSContentDistributionClass: |
260 return toCSSContentDistributionValue(this)->customCSSText(); | 260 return toCSSContentDistributionValue(this)->customCSSText(); |
261 case VariableReferenceClass: | 261 case VariableReferenceClass: |
262 return toCSSVariableReferenceValue(this)->customCSSText(); | 262 return toCSSVariableReferenceValue(this)->customCSSText(); |
263 case CustomPropertyDeclarationClass: | 263 case CustomPropertyDeclarationClass: |
264 // TODO(leviw): We don't allow custom properties in CSSOM yet | 264 return toCSSCustomPropertyDeclaration(this)->value()->tokenRange().seria lize(); |
Timothy Loh
2015/11/14 02:21:05
IMO the serialization logic here should be in CSSC
leviw_travelin_and_unemployed
2015/11/17 01:25:07
Done.
| |
265 ASSERT_NOT_REACHED(); | |
266 } | 265 } |
267 ASSERT_NOT_REACHED(); | 266 ASSERT_NOT_REACHED(); |
268 return String(); | 267 return String(); |
269 } | 268 } |
270 | 269 |
271 void CSSValue::destroy() | 270 void CSSValue::destroy() |
272 { | 271 { |
273 switch (classType()) { | 272 switch (classType()) { |
274 case BasicShapeCircleClass: | 273 case BasicShapeCircleClass: |
275 delete toCSSBasicShapeCircleValue(this); | 274 delete toCSSBasicShapeCircleValue(this); |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
625 toCSSVariableReferenceValue(this)->traceAfterDispatch(visitor); | 624 toCSSVariableReferenceValue(this)->traceAfterDispatch(visitor); |
626 return; | 625 return; |
627 case CustomPropertyDeclarationClass: | 626 case CustomPropertyDeclarationClass: |
628 toCSSCustomPropertyDeclaration(this)->traceAfterDispatch(visitor); | 627 toCSSCustomPropertyDeclaration(this)->traceAfterDispatch(visitor); |
629 return; | 628 return; |
630 } | 629 } |
631 ASSERT_NOT_REACHED(); | 630 ASSERT_NOT_REACHED(); |
632 } | 631 } |
633 | 632 |
634 } | 633 } |
OLD | NEW |