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

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

Issue 26234003: Add *CSS* prefix to ShadowValue (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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/CSSShadowValue.cpp ('k') | Source/core/css/ShadowValue.h » ('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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "core/css/CSSImageSetValue.h" 44 #include "core/css/CSSImageSetValue.h"
45 #include "core/css/CSSImageValue.h" 45 #include "core/css/CSSImageValue.h"
46 #include "core/css/CSSInheritedValue.h" 46 #include "core/css/CSSInheritedValue.h"
47 #include "core/css/CSSInitialValue.h" 47 #include "core/css/CSSInitialValue.h"
48 #include "core/css/CSSLineBoxContainValue.h" 48 #include "core/css/CSSLineBoxContainValue.h"
49 #include "core/css/CSSMixFunctionValue.h" 49 #include "core/css/CSSMixFunctionValue.h"
50 #include "core/css/CSSPrimitiveValue.h" 50 #include "core/css/CSSPrimitiveValue.h"
51 #include "core/css/CSSReflectValue.h" 51 #include "core/css/CSSReflectValue.h"
52 #include "core/css/CSSSVGDocumentValue.h" 52 #include "core/css/CSSSVGDocumentValue.h"
53 #include "core/css/CSSShaderValue.h" 53 #include "core/css/CSSShaderValue.h"
54 #include "core/css/CSSShadowValue.h"
54 #include "core/css/CSSTimingFunctionValue.h" 55 #include "core/css/CSSTimingFunctionValue.h"
55 #include "core/css/CSSTransformValue.h" 56 #include "core/css/CSSTransformValue.h"
56 #include "core/css/CSSUnicodeRangeValue.h" 57 #include "core/css/CSSUnicodeRangeValue.h"
57 #include "core/css/CSSValueList.h" 58 #include "core/css/CSSValueList.h"
58 #include "core/css/CSSVariableValue.h" 59 #include "core/css/CSSVariableValue.h"
59 #include "core/css/ShadowValue.h"
60 #include "core/svg/SVGColor.h" 60 #include "core/svg/SVGColor.h"
61 #include "core/svg/SVGPaint.h" 61 #include "core/svg/SVGPaint.h"
62 62
63 namespace WebCore { 63 namespace WebCore {
64 64
65 struct SameSizeAsCSSValue : public RefCounted<SameSizeAsCSSValue> { 65 struct SameSizeAsCSSValue : public RefCounted<SameSizeAsCSSValue> {
66 uint32_t bitfields; 66 uint32_t bitfields;
67 }; 67 };
68 68
69 COMPILE_ASSERT(sizeof(CSSValue) == sizeof(SameSizeAsCSSValue), CSS_value_should_ stay_small); 69 COMPILE_ASSERT(sizeof(CSSValue) == sizeof(SameSizeAsCSSValue), CSS_value_should_ stay_small);
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 return compareCSSValues<CSSInheritedValue>(*this, other); 180 return compareCSSValues<CSSInheritedValue>(*this, other);
181 case InitialClass: 181 case InitialClass:
182 return compareCSSValues<CSSInitialValue>(*this, other); 182 return compareCSSValues<CSSInitialValue>(*this, other);
183 case GridTemplateClass: 183 case GridTemplateClass:
184 return compareCSSValues<CSSGridTemplateValue>(*this, other); 184 return compareCSSValues<CSSGridTemplateValue>(*this, other);
185 case PrimitiveClass: 185 case PrimitiveClass:
186 return compareCSSValues<CSSPrimitiveValue>(*this, other); 186 return compareCSSValues<CSSPrimitiveValue>(*this, other);
187 case ReflectClass: 187 case ReflectClass:
188 return compareCSSValues<CSSReflectValue>(*this, other); 188 return compareCSSValues<CSSReflectValue>(*this, other);
189 case ShadowClass: 189 case ShadowClass:
190 return compareCSSValues<ShadowValue>(*this, other); 190 return compareCSSValues<CSSShadowValue>(*this, other);
191 case CubicBezierTimingFunctionClass: 191 case CubicBezierTimingFunctionClass:
192 return compareCSSValues<CSSCubicBezierTimingFunctionValue>(*this, ot her); 192 return compareCSSValues<CSSCubicBezierTimingFunctionValue>(*this, ot her);
193 case StepsTimingFunctionClass: 193 case StepsTimingFunctionClass:
194 return compareCSSValues<CSSStepsTimingFunctionValue>(*this, other); 194 return compareCSSValues<CSSStepsTimingFunctionValue>(*this, other);
195 case UnicodeRangeClass: 195 case UnicodeRangeClass:
196 return compareCSSValues<CSSUnicodeRangeValue>(*this, other); 196 return compareCSSValues<CSSUnicodeRangeValue>(*this, other);
197 case ValueListClass: 197 case ValueListClass:
198 return compareCSSValues<CSSValueList>(*this, other); 198 return compareCSSValues<CSSValueList>(*this, other);
199 case CSSTransformClass: 199 case CSSTransformClass:
200 return compareCSSValues<CSSTransformValue>(*this, other); 200 return compareCSSValues<CSSTransformValue>(*this, other);
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 return static_cast<const CSSInheritedValue*>(this)->customCssText(); 268 return static_cast<const CSSInheritedValue*>(this)->customCssText();
269 case InitialClass: 269 case InitialClass:
270 return static_cast<const CSSInitialValue*>(this)->customCssText(); 270 return static_cast<const CSSInitialValue*>(this)->customCssText();
271 case GridTemplateClass: 271 case GridTemplateClass:
272 return static_cast<const CSSGridTemplateValue*>(this)->customCssText(); 272 return static_cast<const CSSGridTemplateValue*>(this)->customCssText();
273 case PrimitiveClass: 273 case PrimitiveClass:
274 return toCSSPrimitiveValue(this)->customCssText(); 274 return toCSSPrimitiveValue(this)->customCssText();
275 case ReflectClass: 275 case ReflectClass:
276 return static_cast<const CSSReflectValue*>(this)->customCssText(); 276 return static_cast<const CSSReflectValue*>(this)->customCssText();
277 case ShadowClass: 277 case ShadowClass:
278 return static_cast<const ShadowValue*>(this)->customCssText(); 278 return toCSSShadowValue(this)->customCssText();
279 case CubicBezierTimingFunctionClass: 279 case CubicBezierTimingFunctionClass:
280 return static_cast<const CSSCubicBezierTimingFunctionValue*>(this)->cust omCssText(); 280 return static_cast<const CSSCubicBezierTimingFunctionValue*>(this)->cust omCssText();
281 case StepsTimingFunctionClass: 281 case StepsTimingFunctionClass:
282 return static_cast<const CSSStepsTimingFunctionValue*>(this)->customCssT ext(); 282 return static_cast<const CSSStepsTimingFunctionValue*>(this)->customCssT ext();
283 case UnicodeRangeClass: 283 case UnicodeRangeClass:
284 return static_cast<const CSSUnicodeRangeValue*>(this)->customCssText(); 284 return static_cast<const CSSUnicodeRangeValue*>(this)->customCssText();
285 case ValueListClass: 285 case ValueListClass:
286 return toCSSValueList(this)->customCssText(); 286 return toCSSValueList(this)->customCssText();
287 case CSSTransformClass: 287 case CSSTransformClass:
288 return static_cast<const CSSTransformValue*>(this)->customCssText(); 288 return static_cast<const CSSTransformValue*>(this)->customCssText();
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 case GridTemplateClass: 384 case GridTemplateClass:
385 delete toCSSGridTemplateValue(this); 385 delete toCSSGridTemplateValue(this);
386 return; 386 return;
387 case PrimitiveClass: 387 case PrimitiveClass:
388 delete toCSSPrimitiveValue(this); 388 delete toCSSPrimitiveValue(this);
389 return; 389 return;
390 case ReflectClass: 390 case ReflectClass:
391 delete toCSSReflectValue(this); 391 delete toCSSReflectValue(this);
392 return; 392 return;
393 case ShadowClass: 393 case ShadowClass:
394 delete static_cast<ShadowValue*>(this); 394 delete toCSSShadowValue(this);
395 return; 395 return;
396 case CubicBezierTimingFunctionClass: 396 case CubicBezierTimingFunctionClass:
397 delete toCSSCubicBezierTimingFunctionValue(this); 397 delete toCSSCubicBezierTimingFunctionValue(this);
398 return; 398 return;
399 case StepsTimingFunctionClass: 399 case StepsTimingFunctionClass:
400 delete toCSSStepsTimingFunctionValue(this); 400 delete toCSSStepsTimingFunctionValue(this);
401 return; 401 return;
402 case UnicodeRangeClass: 402 case UnicodeRangeClass:
403 delete toCSSUnicodeRangeValue(this); 403 delete toCSSUnicodeRangeValue(this);
404 return; 404 return;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 return static_cast<const SVGColor*>(this)->cloneForCSSOM(); 469 return static_cast<const SVGColor*>(this)->cloneForCSSOM();
470 case SVGPaintClass: 470 case SVGPaintClass:
471 return static_cast<const SVGPaint*>(this)->cloneForCSSOM(); 471 return static_cast<const SVGPaint*>(this)->cloneForCSSOM();
472 default: 472 default:
473 ASSERT(!isSubtypeExposedToCSSOM()); 473 ASSERT(!isSubtypeExposedToCSSOM());
474 return TextCloneCSSValue::create(classType(), cssText()); 474 return TextCloneCSSValue::create(classType(), cssText());
475 } 475 }
476 } 476 }
477 477
478 } 478 }
OLDNEW
« no previous file with comments | « Source/core/css/CSSShadowValue.cpp ('k') | Source/core/css/ShadowValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698