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

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

Issue 18532004: Implement 'grid-template' parsing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined and updated after Ojan's and Elliott's comments Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/CSSValue.h ('k') | Source/core/css/resolver/StyleBuilderCustom.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 20 matching lines...) Expand all
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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 case RadialGradientClass: 173 case RadialGradientClass:
173 return compareCSSValues<CSSRadialGradientValue>(*this, other); 174 return compareCSSValues<CSSRadialGradientValue>(*this, other);
174 case CrossfadeClass: 175 case CrossfadeClass:
175 return compareCSSValues<CSSCrossfadeValue>(*this, other); 176 return compareCSSValues<CSSCrossfadeValue>(*this, other);
176 case ImageClass: 177 case ImageClass:
177 return compareCSSValues<CSSImageValue>(*this, other); 178 return compareCSSValues<CSSImageValue>(*this, other);
178 case InheritedClass: 179 case InheritedClass:
179 return compareCSSValues<CSSInheritedValue>(*this, other); 180 return compareCSSValues<CSSInheritedValue>(*this, other);
180 case InitialClass: 181 case InitialClass:
181 return compareCSSValues<CSSInitialValue>(*this, other); 182 return compareCSSValues<CSSInitialValue>(*this, other);
183 case GridTemplateClass:
184 return compareCSSValues<CSSGridTemplateValue>(*this, other);
182 case PrimitiveClass: 185 case PrimitiveClass:
183 return compareCSSValues<CSSPrimitiveValue>(*this, other); 186 return compareCSSValues<CSSPrimitiveValue>(*this, other);
184 case ReflectClass: 187 case ReflectClass:
185 return compareCSSValues<CSSReflectValue>(*this, other); 188 return compareCSSValues<CSSReflectValue>(*this, other);
186 case ShadowClass: 189 case ShadowClass:
187 return compareCSSValues<ShadowValue>(*this, other); 190 return compareCSSValues<ShadowValue>(*this, other);
188 case LinearTimingFunctionClass: 191 case LinearTimingFunctionClass:
189 return compareCSSValues<CSSLinearTimingFunctionValue>(*this, other); 192 return compareCSSValues<CSSLinearTimingFunctionValue>(*this, other);
190 case CubicBezierTimingFunctionClass: 193 case CubicBezierTimingFunctionClass:
191 return compareCSSValues<CSSCubicBezierTimingFunctionValue>(*this, ot her); 194 return compareCSSValues<CSSCubicBezierTimingFunctionValue>(*this, ot her);
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 case RadialGradientClass: 263 case RadialGradientClass:
261 return static_cast<const CSSRadialGradientValue*>(this)->customCssText() ; 264 return static_cast<const CSSRadialGradientValue*>(this)->customCssText() ;
262 case CrossfadeClass: 265 case CrossfadeClass:
263 return static_cast<const CSSCrossfadeValue*>(this)->customCssText(); 266 return static_cast<const CSSCrossfadeValue*>(this)->customCssText();
264 case ImageClass: 267 case ImageClass:
265 return toCSSImageValue(this)->customCssText(); 268 return toCSSImageValue(this)->customCssText();
266 case InheritedClass: 269 case InheritedClass:
267 return static_cast<const CSSInheritedValue*>(this)->customCssText(); 270 return static_cast<const CSSInheritedValue*>(this)->customCssText();
268 case InitialClass: 271 case InitialClass:
269 return static_cast<const CSSInitialValue*>(this)->customCssText(); 272 return static_cast<const CSSInitialValue*>(this)->customCssText();
273 case GridTemplateClass:
274 return static_cast<const CSSGridTemplateValue*>(this)->customCssText();
270 case PrimitiveClass: 275 case PrimitiveClass:
271 return toCSSPrimitiveValue(this)->customCssText(); 276 return toCSSPrimitiveValue(this)->customCssText();
272 case ReflectClass: 277 case ReflectClass:
273 return static_cast<const CSSReflectValue*>(this)->customCssText(); 278 return static_cast<const CSSReflectValue*>(this)->customCssText();
274 case ShadowClass: 279 case ShadowClass:
275 return static_cast<const ShadowValue*>(this)->customCssText(); 280 return static_cast<const ShadowValue*>(this)->customCssText();
276 case LinearTimingFunctionClass: 281 case LinearTimingFunctionClass:
277 return static_cast<const CSSLinearTimingFunctionValue*>(this)->customCss Text(); 282 return static_cast<const CSSLinearTimingFunctionValue*>(this)->customCss Text();
278 case CubicBezierTimingFunctionClass: 283 case CubicBezierTimingFunctionClass:
279 return static_cast<const CSSCubicBezierTimingFunctionValue*>(this)->cust omCssText(); 284 return static_cast<const CSSCubicBezierTimingFunctionValue*>(this)->cust omCssText();
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 return; 378 return;
374 case ImageClass: 379 case ImageClass:
375 delete toCSSImageValue(this); 380 delete toCSSImageValue(this);
376 return; 381 return;
377 case InheritedClass: 382 case InheritedClass:
378 delete static_cast<CSSInheritedValue*>(this); 383 delete static_cast<CSSInheritedValue*>(this);
379 return; 384 return;
380 case InitialClass: 385 case InitialClass:
381 delete static_cast<CSSInitialValue*>(this); 386 delete static_cast<CSSInitialValue*>(this);
382 return; 387 return;
388 case GridTemplateClass:
389 delete static_cast<CSSGridTemplateValue*>(this);
390 return;
383 case PrimitiveClass: 391 case PrimitiveClass:
384 delete toCSSPrimitiveValue(this); 392 delete toCSSPrimitiveValue(this);
385 return; 393 return;
386 case ReflectClass: 394 case ReflectClass:
387 delete static_cast<CSSReflectValue*>(this); 395 delete static_cast<CSSReflectValue*>(this);
388 return; 396 return;
389 case ShadowClass: 397 case ShadowClass:
390 delete static_cast<ShadowValue*>(this); 398 delete static_cast<ShadowValue*>(this);
391 return; 399 return;
392 case LinearTimingFunctionClass: 400 case LinearTimingFunctionClass:
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 return static_cast<const SVGColor*>(this)->cloneForCSSOM(); 476 return static_cast<const SVGColor*>(this)->cloneForCSSOM();
469 case SVGPaintClass: 477 case SVGPaintClass:
470 return static_cast<const SVGPaint*>(this)->cloneForCSSOM(); 478 return static_cast<const SVGPaint*>(this)->cloneForCSSOM();
471 default: 479 default:
472 ASSERT(!isSubtypeExposedToCSSOM()); 480 ASSERT(!isSubtypeExposedToCSSOM());
473 return TextCloneCSSValue::create(classType(), cssText()); 481 return TextCloneCSSValue::create(classType(), cssText());
474 } 482 }
475 } 483 }
476 484
477 } 485 }
OLDNEW
« no previous file with comments | « Source/core/css/CSSValue.h ('k') | Source/core/css/resolver/StyleBuilderCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698