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

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

Issue 26134002: Add *CSS* prefix to FontValue and FontFeatureValue (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/CSSParser-in.cpp ('k') | Source/core/css/FontFeatureValue.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 18 matching lines...) Expand all
29 29
30 #include "core/css/CSSArrayFunctionValue.h" 30 #include "core/css/CSSArrayFunctionValue.h"
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/CSSFontFeatureValue.h"
40 #include "core/css/CSSFontValue.h"
39 #include "core/css/CSSFunctionValue.h" 41 #include "core/css/CSSFunctionValue.h"
40 #include "core/css/CSSGradientValue.h" 42 #include "core/css/CSSGradientValue.h"
41 #include "core/css/CSSGridTemplateValue.h" 43 #include "core/css/CSSGridTemplateValue.h"
42 #include "core/css/CSSImageSetValue.h" 44 #include "core/css/CSSImageSetValue.h"
43 #include "core/css/CSSImageValue.h" 45 #include "core/css/CSSImageValue.h"
44 #include "core/css/CSSInheritedValue.h" 46 #include "core/css/CSSInheritedValue.h"
45 #include "core/css/CSSInitialValue.h" 47 #include "core/css/CSSInitialValue.h"
46 #include "core/css/CSSLineBoxContainValue.h" 48 #include "core/css/CSSLineBoxContainValue.h"
47 #include "core/css/CSSMixFunctionValue.h" 49 #include "core/css/CSSMixFunctionValue.h"
48 #include "core/css/CSSPrimitiveValue.h" 50 #include "core/css/CSSPrimitiveValue.h"
49 #include "core/css/CSSReflectValue.h" 51 #include "core/css/CSSReflectValue.h"
50 #include "core/css/CSSSVGDocumentValue.h" 52 #include "core/css/CSSSVGDocumentValue.h"
51 #include "core/css/CSSShaderValue.h" 53 #include "core/css/CSSShaderValue.h"
52 #include "core/css/CSSTimingFunctionValue.h" 54 #include "core/css/CSSTimingFunctionValue.h"
53 #include "core/css/CSSTransformValue.h" 55 #include "core/css/CSSTransformValue.h"
54 #include "core/css/CSSUnicodeRangeValue.h" 56 #include "core/css/CSSUnicodeRangeValue.h"
55 #include "core/css/CSSValueList.h" 57 #include "core/css/CSSValueList.h"
56 #include "core/css/CSSVariableValue.h" 58 #include "core/css/CSSVariableValue.h"
57 #include "core/css/FontFeatureValue.h"
58 #include "core/css/FontValue.h"
59 #include "core/css/ShadowValue.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
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 switch (m_classType) { 154 switch (m_classType) {
155 case AspectRatioClass: 155 case AspectRatioClass:
156 return compareCSSValues<CSSAspectRatioValue>(*this, other); 156 return compareCSSValues<CSSAspectRatioValue>(*this, other);
157 case BorderImageSliceClass: 157 case BorderImageSliceClass:
158 return compareCSSValues<CSSBorderImageSliceValue>(*this, other); 158 return compareCSSValues<CSSBorderImageSliceValue>(*this, other);
159 case CanvasClass: 159 case CanvasClass:
160 return compareCSSValues<CSSCanvasValue>(*this, other); 160 return compareCSSValues<CSSCanvasValue>(*this, other);
161 case CursorImageClass: 161 case CursorImageClass:
162 return compareCSSValues<CSSCursorImageValue>(*this, other); 162 return compareCSSValues<CSSCursorImageValue>(*this, other);
163 case FontClass: 163 case FontClass:
164 return compareCSSValues<FontValue>(*this, other); 164 return compareCSSValues<CSSFontValue>(*this, other);
165 case FontFaceSrcClass: 165 case FontFaceSrcClass:
166 return compareCSSValues<CSSFontFaceSrcValue>(*this, other); 166 return compareCSSValues<CSSFontFaceSrcValue>(*this, other);
167 case FontFeatureClass: 167 case FontFeatureClass:
168 return compareCSSValues<FontFeatureValue>(*this, other); 168 return compareCSSValues<CSSFontFeatureValue>(*this, other);
169 case FunctionClass: 169 case FunctionClass:
170 return compareCSSValues<CSSFunctionValue>(*this, other); 170 return compareCSSValues<CSSFunctionValue>(*this, other);
171 case LinearGradientClass: 171 case LinearGradientClass:
172 return compareCSSValues<CSSLinearGradientValue>(*this, other); 172 return compareCSSValues<CSSLinearGradientValue>(*this, other);
173 case RadialGradientClass: 173 case RadialGradientClass:
174 return compareCSSValues<CSSRadialGradientValue>(*this, other); 174 return compareCSSValues<CSSRadialGradientValue>(*this, other);
175 case CrossfadeClass: 175 case CrossfadeClass:
176 return compareCSSValues<CSSCrossfadeValue>(*this, other); 176 return compareCSSValues<CSSCrossfadeValue>(*this, other);
177 case ImageClass: 177 case ImageClass:
178 return compareCSSValues<CSSImageValue>(*this, other); 178 return compareCSSValues<CSSImageValue>(*this, other);
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 switch (classType()) { 242 switch (classType()) {
243 case AspectRatioClass: 243 case AspectRatioClass:
244 return static_cast<const CSSAspectRatioValue*>(this)->customCssText(); 244 return static_cast<const CSSAspectRatioValue*>(this)->customCssText();
245 case BorderImageSliceClass: 245 case BorderImageSliceClass:
246 return static_cast<const CSSBorderImageSliceValue*>(this)->customCssText (); 246 return static_cast<const CSSBorderImageSliceValue*>(this)->customCssText ();
247 case CanvasClass: 247 case CanvasClass:
248 return static_cast<const CSSCanvasValue*>(this)->customCssText(); 248 return static_cast<const CSSCanvasValue*>(this)->customCssText();
249 case CursorImageClass: 249 case CursorImageClass:
250 return static_cast<const CSSCursorImageValue*>(this)->customCssText(); 250 return static_cast<const CSSCursorImageValue*>(this)->customCssText();
251 case FontClass: 251 case FontClass:
252 return static_cast<const FontValue*>(this)->customCssText(); 252 return toCSSFontValue(this)->customCssText();
253 case FontFaceSrcClass: 253 case FontFaceSrcClass:
254 return static_cast<const CSSFontFaceSrcValue*>(this)->customCssText(); 254 return static_cast<const CSSFontFaceSrcValue*>(this)->customCssText();
255 case FontFeatureClass: 255 case FontFeatureClass:
256 return static_cast<const FontFeatureValue*>(this)->customCssText(); 256 return toCSSFontFeatureValue(this)->customCssText();
257 case FunctionClass: 257 case FunctionClass:
258 return static_cast<const CSSFunctionValue*>(this)->customCssText(); 258 return static_cast<const CSSFunctionValue*>(this)->customCssText();
259 case LinearGradientClass: 259 case LinearGradientClass:
260 return static_cast<const CSSLinearGradientValue*>(this)->customCssText() ; 260 return static_cast<const CSSLinearGradientValue*>(this)->customCssText() ;
261 case RadialGradientClass: 261 case RadialGradientClass:
262 return static_cast<const CSSRadialGradientValue*>(this)->customCssText() ; 262 return static_cast<const CSSRadialGradientValue*>(this)->customCssText() ;
263 case CrossfadeClass: 263 case CrossfadeClass:
264 return static_cast<const CSSCrossfadeValue*>(this)->customCssText(); 264 return static_cast<const CSSCrossfadeValue*>(this)->customCssText();
265 case ImageClass: 265 case ImageClass:
266 return toCSSImageValue(this)->customCssText(); 266 return toCSSImageValue(this)->customCssText();
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 case BorderImageSliceClass: 345 case BorderImageSliceClass:
346 delete toCSSBorderImageSliceValue(this); 346 delete toCSSBorderImageSliceValue(this);
347 return; 347 return;
348 case CanvasClass: 348 case CanvasClass:
349 delete toCSSCanvasValue(this); 349 delete toCSSCanvasValue(this);
350 return; 350 return;
351 case CursorImageClass: 351 case CursorImageClass:
352 delete toCSSCursorImageValue(this); 352 delete toCSSCursorImageValue(this);
353 return; 353 return;
354 case FontClass: 354 case FontClass:
355 delete static_cast<FontValue*>(this); 355 delete toCSSFontValue(this);
356 return; 356 return;
357 case FontFaceSrcClass: 357 case FontFaceSrcClass:
358 delete toCSSFontFaceSrcValue(this); 358 delete toCSSFontFaceSrcValue(this);
359 return; 359 return;
360 case FontFeatureClass: 360 case FontFeatureClass:
361 delete static_cast<FontFeatureValue*>(this); 361 delete toCSSFontFeatureValue(this);
362 return; 362 return;
363 case FunctionClass: 363 case FunctionClass:
364 delete toCSSFunctionValue(this); 364 delete toCSSFunctionValue(this);
365 return; 365 return;
366 case LinearGradientClass: 366 case LinearGradientClass:
367 delete toCSSLinearGradientValue(this); 367 delete toCSSLinearGradientValue(this);
368 return; 368 return;
369 case RadialGradientClass: 369 case RadialGradientClass:
370 delete toCSSRadialGradientValue(this); 370 delete toCSSRadialGradientValue(this);
371 return; 371 return;
(...skipping 97 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/CSSParser-in.cpp ('k') | Source/core/css/FontFeatureValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698