Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: Source/core/css/CSSValue.cpp

Issue 1304993002: Change Rect and Quad to be CSSValues (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@split_counter_out_attempt_3
Patch Set: Small change to generated style builder functions Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/css/CSSValue.h ('k') | Source/core/css/ComputedStyleCSSValueMapping.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 28 matching lines...) Expand all
39 #include "core/css/CSSGradientValue.h" 39 #include "core/css/CSSGradientValue.h"
40 #include "core/css/CSSGridLineNamesValue.h" 40 #include "core/css/CSSGridLineNamesValue.h"
41 #include "core/css/CSSGridTemplateAreasValue.h" 41 #include "core/css/CSSGridTemplateAreasValue.h"
42 #include "core/css/CSSImageSetValue.h" 42 #include "core/css/CSSImageSetValue.h"
43 #include "core/css/CSSImageValue.h" 43 #include "core/css/CSSImageValue.h"
44 #include "core/css/CSSInheritedValue.h" 44 #include "core/css/CSSInheritedValue.h"
45 #include "core/css/CSSInitialValue.h" 45 #include "core/css/CSSInitialValue.h"
46 #include "core/css/CSSLineBoxContainValue.h" 46 #include "core/css/CSSLineBoxContainValue.h"
47 #include "core/css/CSSPathValue.h" 47 #include "core/css/CSSPathValue.h"
48 #include "core/css/CSSPrimitiveValue.h" 48 #include "core/css/CSSPrimitiveValue.h"
49 #include "core/css/CSSQuadValue.h"
49 #include "core/css/CSSReflectValue.h" 50 #include "core/css/CSSReflectValue.h"
50 #include "core/css/CSSSVGDocumentValue.h" 51 #include "core/css/CSSSVGDocumentValue.h"
51 #include "core/css/CSSShadowValue.h" 52 #include "core/css/CSSShadowValue.h"
52 #include "core/css/CSSTimingFunctionValue.h" 53 #include "core/css/CSSTimingFunctionValue.h"
53 #include "core/css/CSSUnicodeRangeValue.h" 54 #include "core/css/CSSUnicodeRangeValue.h"
54 #include "core/css/CSSUnsetValue.h" 55 #include "core/css/CSSUnsetValue.h"
55 #include "core/css/CSSValueList.h" 56 #include "core/css/CSSValueList.h"
56 57
57 namespace blink { 58 namespace blink {
58 59
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 case UnsetClass: 123 case UnsetClass:
123 return compareCSSValues<CSSUnsetValue>(*this, other); 124 return compareCSSValues<CSSUnsetValue>(*this, other);
124 case GridLineNamesClass: 125 case GridLineNamesClass:
125 return compareCSSValues<CSSGridLineNamesValue>(*this, other); 126 return compareCSSValues<CSSGridLineNamesValue>(*this, other);
126 case GridTemplateAreasClass: 127 case GridTemplateAreasClass:
127 return compareCSSValues<CSSGridTemplateAreasValue>(*this, other); 128 return compareCSSValues<CSSGridTemplateAreasValue>(*this, other);
128 case PathClass: 129 case PathClass:
129 return compareCSSValues<CSSPathValue>(*this, other); 130 return compareCSSValues<CSSPathValue>(*this, other);
130 case PrimitiveClass: 131 case PrimitiveClass:
131 return compareCSSValues<CSSPrimitiveValue>(*this, other); 132 return compareCSSValues<CSSPrimitiveValue>(*this, other);
133 case QuadClass:
134 return compareCSSValues<CSSQuadValue>(*this, other);
132 case ReflectClass: 135 case ReflectClass:
133 return compareCSSValues<CSSReflectValue>(*this, other); 136 return compareCSSValues<CSSReflectValue>(*this, other);
134 case ShadowClass: 137 case ShadowClass:
135 return compareCSSValues<CSSShadowValue>(*this, other); 138 return compareCSSValues<CSSShadowValue>(*this, other);
136 case CubicBezierTimingFunctionClass: 139 case CubicBezierTimingFunctionClass:
137 return compareCSSValues<CSSCubicBezierTimingFunctionValue>(*this, ot her); 140 return compareCSSValues<CSSCubicBezierTimingFunctionValue>(*this, ot her);
138 case StepsTimingFunctionClass: 141 case StepsTimingFunctionClass:
139 return compareCSSValues<CSSStepsTimingFunctionValue>(*this, other); 142 return compareCSSValues<CSSStepsTimingFunctionValue>(*this, other);
140 case UnicodeRangeClass: 143 case UnicodeRangeClass:
141 return compareCSSValues<CSSUnicodeRangeValue>(*this, other); 144 return compareCSSValues<CSSUnicodeRangeValue>(*this, other);
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 case InitialClass: 191 case InitialClass:
189 return toCSSInitialValue(this)->customCSSText(); 192 return toCSSInitialValue(this)->customCSSText();
190 case GridLineNamesClass: 193 case GridLineNamesClass:
191 return toCSSGridLineNamesValue(this)->customCSSText(); 194 return toCSSGridLineNamesValue(this)->customCSSText();
192 case GridTemplateAreasClass: 195 case GridTemplateAreasClass:
193 return toCSSGridTemplateAreasValue(this)->customCSSText(); 196 return toCSSGridTemplateAreasValue(this)->customCSSText();
194 case PathClass: 197 case PathClass:
195 return toCSSPathValue(this)->customCSSText(); 198 return toCSSPathValue(this)->customCSSText();
196 case PrimitiveClass: 199 case PrimitiveClass:
197 return toCSSPrimitiveValue(this)->customCSSText(); 200 return toCSSPrimitiveValue(this)->customCSSText();
201 case QuadClass:
202 return toCSSQuadValue(this)->customCSSText();
198 case ReflectClass: 203 case ReflectClass:
199 return toCSSReflectValue(this)->customCSSText(); 204 return toCSSReflectValue(this)->customCSSText();
200 case ShadowClass: 205 case ShadowClass:
201 return toCSSShadowValue(this)->customCSSText(); 206 return toCSSShadowValue(this)->customCSSText();
202 case CubicBezierTimingFunctionClass: 207 case CubicBezierTimingFunctionClass:
203 return toCSSCubicBezierTimingFunctionValue(this)->customCSSText(); 208 return toCSSCubicBezierTimingFunctionValue(this)->customCSSText();
204 case StepsTimingFunctionClass: 209 case StepsTimingFunctionClass:
205 return toCSSStepsTimingFunctionValue(this)->customCSSText(); 210 return toCSSStepsTimingFunctionValue(this)->customCSSText();
206 case UnicodeRangeClass: 211 case UnicodeRangeClass:
207 return toCSSUnicodeRangeValue(this)->customCSSText(); 212 return toCSSUnicodeRangeValue(this)->customCSSText();
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 return; 275 return;
271 case GridTemplateAreasClass: 276 case GridTemplateAreasClass:
272 delete toCSSGridTemplateAreasValue(this); 277 delete toCSSGridTemplateAreasValue(this);
273 return; 278 return;
274 case PathClass: 279 case PathClass:
275 delete toCSSPathValue(this); 280 delete toCSSPathValue(this);
276 return; 281 return;
277 case PrimitiveClass: 282 case PrimitiveClass:
278 delete toCSSPrimitiveValue(this); 283 delete toCSSPrimitiveValue(this);
279 return; 284 return;
285 case QuadClass:
286 delete toCSSQuadValue(this);
287 return;
280 case ReflectClass: 288 case ReflectClass:
281 delete toCSSReflectValue(this); 289 delete toCSSReflectValue(this);
282 return; 290 return;
283 case ShadowClass: 291 case ShadowClass:
284 delete toCSSShadowValue(this); 292 delete toCSSShadowValue(this);
285 return; 293 return;
286 case CubicBezierTimingFunctionClass: 294 case CubicBezierTimingFunctionClass:
287 delete toCSSCubicBezierTimingFunctionValue(this); 295 delete toCSSCubicBezierTimingFunctionValue(this);
288 return; 296 return;
289 case StepsTimingFunctionClass: 297 case StepsTimingFunctionClass:
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 return; 369 return;
362 case GridTemplateAreasClass: 370 case GridTemplateAreasClass:
363 toCSSGridTemplateAreasValue(this)->~CSSGridTemplateAreasValue(); 371 toCSSGridTemplateAreasValue(this)->~CSSGridTemplateAreasValue();
364 return; 372 return;
365 case PathClass: 373 case PathClass:
366 toCSSPathValue(this)->~CSSPathValue(); 374 toCSSPathValue(this)->~CSSPathValue();
367 return; 375 return;
368 case PrimitiveClass: 376 case PrimitiveClass:
369 toCSSPrimitiveValue(this)->~CSSPrimitiveValue(); 377 toCSSPrimitiveValue(this)->~CSSPrimitiveValue();
370 return; 378 return;
379 case QuadClass:
380 toCSSQuadValue(this)->~CSSQuadValue();
381 return;
371 case ReflectClass: 382 case ReflectClass:
372 toCSSReflectValue(this)->~CSSReflectValue(); 383 toCSSReflectValue(this)->~CSSReflectValue();
373 return; 384 return;
374 case ShadowClass: 385 case ShadowClass:
375 toCSSShadowValue(this)->~CSSShadowValue(); 386 toCSSShadowValue(this)->~CSSShadowValue();
376 return; 387 return;
377 case CubicBezierTimingFunctionClass: 388 case CubicBezierTimingFunctionClass:
378 toCSSCubicBezierTimingFunctionValue(this)->~CSSCubicBezierTimingFunction Value(); 389 toCSSCubicBezierTimingFunctionValue(this)->~CSSCubicBezierTimingFunction Value();
379 return; 390 return;
380 case StepsTimingFunctionClass: 391 case StepsTimingFunctionClass:
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 return; 463 return;
453 case GridTemplateAreasClass: 464 case GridTemplateAreasClass:
454 toCSSGridTemplateAreasValue(this)->traceAfterDispatch(visitor); 465 toCSSGridTemplateAreasValue(this)->traceAfterDispatch(visitor);
455 return; 466 return;
456 case PathClass: 467 case PathClass:
457 toCSSPathValue(this)->traceAfterDispatch(visitor); 468 toCSSPathValue(this)->traceAfterDispatch(visitor);
458 return; 469 return;
459 case PrimitiveClass: 470 case PrimitiveClass:
460 toCSSPrimitiveValue(this)->traceAfterDispatch(visitor); 471 toCSSPrimitiveValue(this)->traceAfterDispatch(visitor);
461 return; 472 return;
473 case QuadClass:
474 toCSSQuadValue(this)->traceAfterDispatch(visitor);
475 return;
462 case ReflectClass: 476 case ReflectClass:
463 toCSSReflectValue(this)->traceAfterDispatch(visitor); 477 toCSSReflectValue(this)->traceAfterDispatch(visitor);
464 return; 478 return;
465 case ShadowClass: 479 case ShadowClass:
466 toCSSShadowValue(this)->traceAfterDispatch(visitor); 480 toCSSShadowValue(this)->traceAfterDispatch(visitor);
467 return; 481 return;
468 case CubicBezierTimingFunctionClass: 482 case CubicBezierTimingFunctionClass:
469 toCSSCubicBezierTimingFunctionValue(this)->traceAfterDispatch(visitor); 483 toCSSCubicBezierTimingFunctionValue(this)->traceAfterDispatch(visitor);
470 return; 484 return;
471 case StepsTimingFunctionClass: 485 case StepsTimingFunctionClass:
(...skipping 15 matching lines...) Expand all
487 toCSSSVGDocumentValue(this)->traceAfterDispatch(visitor); 501 toCSSSVGDocumentValue(this)->traceAfterDispatch(visitor);
488 return; 502 return;
489 case CSSContentDistributionClass: 503 case CSSContentDistributionClass:
490 toCSSContentDistributionValue(this)->traceAfterDispatch(visitor); 504 toCSSContentDistributionValue(this)->traceAfterDispatch(visitor);
491 return; 505 return;
492 } 506 }
493 ASSERT_NOT_REACHED(); 507 ASSERT_NOT_REACHED();
494 } 508 }
495 509
496 } 510 }
OLDNEW
« no previous file with comments | « Source/core/css/CSSValue.h ('k') | Source/core/css/ComputedStyleCSSValueMapping.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698