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

Side by Side Diff: sky/engine/core/css/CSSValue.cpp

Issue 1223843003: Remove support for loading remote font faces (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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 | « sky/engine/core/css/CSSValue.h ('k') | sky/engine/core/css/DocumentFontFaceSet.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 12 matching lines...) Expand all
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 * 24 *
25 */ 25 */
26 26
27 #include "sky/engine/core/css/CSSValue.h" 27 #include "sky/engine/core/css/CSSValue.h"
28 28
29 #include "sky/engine/core/css/CSSAspectRatioValue.h" 29 #include "sky/engine/core/css/CSSAspectRatioValue.h"
30 #include "sky/engine/core/css/CSSBorderImageSliceValue.h" 30 #include "sky/engine/core/css/CSSBorderImageSliceValue.h"
31 #include "sky/engine/core/css/CSSCalculationValue.h" 31 #include "sky/engine/core/css/CSSCalculationValue.h"
32 #include "sky/engine/core/css/CSSFilterValue.h" 32 #include "sky/engine/core/css/CSSFilterValue.h"
33 #include "sky/engine/core/css/CSSFontFaceSrcValue.h"
34 #include "sky/engine/core/css/CSSFontFeatureValue.h" 33 #include "sky/engine/core/css/CSSFontFeatureValue.h"
35 #include "sky/engine/core/css/CSSFontValue.h" 34 #include "sky/engine/core/css/CSSFontValue.h"
36 #include "sky/engine/core/css/CSSFunctionValue.h" 35 #include "sky/engine/core/css/CSSFunctionValue.h"
37 #include "sky/engine/core/css/CSSGradientValue.h" 36 #include "sky/engine/core/css/CSSGradientValue.h"
38 #include "sky/engine/core/css/CSSInheritedValue.h" 37 #include "sky/engine/core/css/CSSInheritedValue.h"
39 #include "sky/engine/core/css/CSSInitialValue.h" 38 #include "sky/engine/core/css/CSSInitialValue.h"
40 #include "sky/engine/core/css/CSSLineBoxContainValue.h" 39 #include "sky/engine/core/css/CSSLineBoxContainValue.h"
41 #include "sky/engine/core/css/CSSPrimitiveValue.h" 40 #include "sky/engine/core/css/CSSPrimitiveValue.h"
42 #include "sky/engine/core/css/CSSShadowValue.h" 41 #include "sky/engine/core/css/CSSShadowValue.h"
43 #include "sky/engine/core/css/CSSTimingFunctionValue.h" 42 #include "sky/engine/core/css/CSSTimingFunctionValue.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 } 107 }
109 108
110 if (m_classType == other.m_classType) { 109 if (m_classType == other.m_classType) {
111 switch (m_classType) { 110 switch (m_classType) {
112 case AspectRatioClass: 111 case AspectRatioClass:
113 return compareCSSValues<CSSAspectRatioValue>(*this, other); 112 return compareCSSValues<CSSAspectRatioValue>(*this, other);
114 case BorderImageSliceClass: 113 case BorderImageSliceClass:
115 return compareCSSValues<CSSBorderImageSliceValue>(*this, other); 114 return compareCSSValues<CSSBorderImageSliceValue>(*this, other);
116 case FontClass: 115 case FontClass:
117 return compareCSSValues<CSSFontValue>(*this, other); 116 return compareCSSValues<CSSFontValue>(*this, other);
118 case FontFaceSrcClass:
119 return compareCSSValues<CSSFontFaceSrcValue>(*this, other);
120 case FontFeatureClass: 117 case FontFeatureClass:
121 return compareCSSValues<CSSFontFeatureValue>(*this, other); 118 return compareCSSValues<CSSFontFeatureValue>(*this, other);
122 case FunctionClass: 119 case FunctionClass:
123 return compareCSSValues<CSSFunctionValue>(*this, other); 120 return compareCSSValues<CSSFunctionValue>(*this, other);
124 case LinearGradientClass: 121 case LinearGradientClass:
125 return compareCSSValues<CSSLinearGradientValue>(*this, other); 122 return compareCSSValues<CSSLinearGradientValue>(*this, other);
126 case RadialGradientClass: 123 case RadialGradientClass:
127 return compareCSSValues<CSSRadialGradientValue>(*this, other); 124 return compareCSSValues<CSSRadialGradientValue>(*this, other);
128 case InheritedClass: 125 case InheritedClass:
129 return compareCSSValues<CSSInheritedValue>(*this, other); 126 return compareCSSValues<CSSInheritedValue>(*this, other);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 } 165 }
169 ASSERT(!isCSSOMSafe() || isSubtypeExposedToCSSOM()); 166 ASSERT(!isCSSOMSafe() || isSubtypeExposedToCSSOM());
170 167
171 switch (classType()) { 168 switch (classType()) {
172 case AspectRatioClass: 169 case AspectRatioClass:
173 return toCSSAspectRatioValue(this)->customCSSText(); 170 return toCSSAspectRatioValue(this)->customCSSText();
174 case BorderImageSliceClass: 171 case BorderImageSliceClass:
175 return toCSSBorderImageSliceValue(this)->customCSSText(); 172 return toCSSBorderImageSliceValue(this)->customCSSText();
176 case FontClass: 173 case FontClass:
177 return toCSSFontValue(this)->customCSSText(); 174 return toCSSFontValue(this)->customCSSText();
178 case FontFaceSrcClass:
179 return toCSSFontFaceSrcValue(this)->customCSSText();
180 case FontFeatureClass: 175 case FontFeatureClass:
181 return toCSSFontFeatureValue(this)->customCSSText(); 176 return toCSSFontFeatureValue(this)->customCSSText();
182 case FunctionClass: 177 case FunctionClass:
183 return toCSSFunctionValue(this)->customCSSText(); 178 return toCSSFunctionValue(this)->customCSSText();
184 case LinearGradientClass: 179 case LinearGradientClass:
185 return toCSSLinearGradientValue(this)->customCSSText(); 180 return toCSSLinearGradientValue(this)->customCSSText();
186 case RadialGradientClass: 181 case RadialGradientClass:
187 return toCSSRadialGradientValue(this)->customCSSText(); 182 return toCSSRadialGradientValue(this)->customCSSText();
188 case InheritedClass: 183 case InheritedClass:
189 return toCSSInheritedValue(this)->customCSSText(); 184 return toCSSInheritedValue(this)->customCSSText();
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 switch (classType()) { 221 switch (classType()) {
227 case AspectRatioClass: 222 case AspectRatioClass:
228 delete toCSSAspectRatioValue(this); 223 delete toCSSAspectRatioValue(this);
229 return; 224 return;
230 case BorderImageSliceClass: 225 case BorderImageSliceClass:
231 delete toCSSBorderImageSliceValue(this); 226 delete toCSSBorderImageSliceValue(this);
232 return; 227 return;
233 case FontClass: 228 case FontClass:
234 delete toCSSFontValue(this); 229 delete toCSSFontValue(this);
235 return; 230 return;
236 case FontFaceSrcClass:
237 delete toCSSFontFaceSrcValue(this);
238 return;
239 case FontFeatureClass: 231 case FontFeatureClass:
240 delete toCSSFontFeatureValue(this); 232 delete toCSSFontFeatureValue(this);
241 return; 233 return;
242 case FunctionClass: 234 case FunctionClass:
243 delete toCSSFunctionValue(this); 235 delete toCSSFunctionValue(this);
244 return; 236 return;
245 case LinearGradientClass: 237 case LinearGradientClass:
246 delete toCSSLinearGradientValue(this); 238 delete toCSSLinearGradientValue(this);
247 return; 239 return;
248 case RadialGradientClass: 240 case RadialGradientClass:
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 return toCSSFilterValue(this)->cloneForCSSOM(); 291 return toCSSFilterValue(this)->cloneForCSSOM();
300 case CSSTransformClass: 292 case CSSTransformClass:
301 return toCSSTransformValue(this)->cloneForCSSOM(); 293 return toCSSTransformValue(this)->cloneForCSSOM();
302 default: 294 default:
303 ASSERT(!isSubtypeExposedToCSSOM()); 295 ASSERT(!isSubtypeExposedToCSSOM());
304 return TextCloneCSSValue::create(classType(), cssText()); 296 return TextCloneCSSValue::create(classType(), cssText());
305 } 297 }
306 } 298 }
307 299
308 } 300 }
OLDNEW
« no previous file with comments | « sky/engine/core/css/CSSValue.h ('k') | sky/engine/core/css/DocumentFontFaceSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698