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

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

Issue 1416793004: Remove support for -webkit-canvas and Document.getCSSCanvasContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
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 11 matching lines...) Expand all
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
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 "config.h" 27 #include "config.h"
28 #include "core/css/CSSValue.h" 28 #include "core/css/CSSValue.h"
29 29
30 #include "core/css/CSSBasicShapeValues.h" 30 #include "core/css/CSSBasicShapeValues.h"
31 #include "core/css/CSSBorderImageSliceValue.h" 31 #include "core/css/CSSBorderImageSliceValue.h"
32 #include "core/css/CSSCanvasValue.h"
33 #include "core/css/CSSColorValue.h" 32 #include "core/css/CSSColorValue.h"
34 #include "core/css/CSSContentDistributionValue.h" 33 #include "core/css/CSSContentDistributionValue.h"
35 #include "core/css/CSSCounterValue.h" 34 #include "core/css/CSSCounterValue.h"
36 #include "core/css/CSSCrossfadeValue.h" 35 #include "core/css/CSSCrossfadeValue.h"
37 #include "core/css/CSSCursorImageValue.h" 36 #include "core/css/CSSCursorImageValue.h"
38 #include "core/css/CSSCustomIdentValue.h" 37 #include "core/css/CSSCustomIdentValue.h"
39 #include "core/css/CSSFontFaceSrcValue.h" 38 #include "core/css/CSSFontFaceSrcValue.h"
40 #include "core/css/CSSFontFeatureValue.h" 39 #include "core/css/CSSFontFeatureValue.h"
41 #include "core/css/CSSFunctionValue.h" 40 #include "core/css/CSSFunctionValue.h"
42 #include "core/css/CSSGradientValue.h" 41 #include "core/css/CSSGradientValue.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 case BasicShapeCircleClass: 101 case BasicShapeCircleClass:
103 return compareCSSValues<CSSBasicShapeCircleValue>(*this, other); 102 return compareCSSValues<CSSBasicShapeCircleValue>(*this, other);
104 case BasicShapeEllipseClass: 103 case BasicShapeEllipseClass:
105 return compareCSSValues<CSSBasicShapeEllipseValue>(*this, other); 104 return compareCSSValues<CSSBasicShapeEllipseValue>(*this, other);
106 case BasicShapePolygonClass: 105 case BasicShapePolygonClass:
107 return compareCSSValues<CSSBasicShapePolygonValue>(*this, other); 106 return compareCSSValues<CSSBasicShapePolygonValue>(*this, other);
108 case BasicShapeInsetClass: 107 case BasicShapeInsetClass:
109 return compareCSSValues<CSSBasicShapeInsetValue>(*this, other); 108 return compareCSSValues<CSSBasicShapeInsetValue>(*this, other);
110 case BorderImageSliceClass: 109 case BorderImageSliceClass:
111 return compareCSSValues<CSSBorderImageSliceValue>(*this, other); 110 return compareCSSValues<CSSBorderImageSliceValue>(*this, other);
112 case CanvasClass:
113 return compareCSSValues<CSSCanvasValue>(*this, other);
114 case ColorClass: 111 case ColorClass:
115 return compareCSSValues<CSSColorValue>(*this, other); 112 return compareCSSValues<CSSColorValue>(*this, other);
116 case CounterClass: 113 case CounterClass:
117 return compareCSSValues<CSSCounterValue>(*this, other); 114 return compareCSSValues<CSSCounterValue>(*this, other);
118 case CursorImageClass: 115 case CursorImageClass:
119 return compareCSSValues<CSSCursorImageValue>(*this, other); 116 return compareCSSValues<CSSCursorImageValue>(*this, other);
120 case FontFaceSrcClass: 117 case FontFaceSrcClass:
121 return compareCSSValues<CSSFontFaceSrcValue>(*this, other); 118 return compareCSSValues<CSSFontFaceSrcValue>(*this, other);
122 case FontFeatureClass: 119 case FontFeatureClass:
123 return compareCSSValues<CSSFontFeatureValue>(*this, other); 120 return compareCSSValues<CSSFontFeatureValue>(*this, other);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 case BasicShapeCircleClass: 183 case BasicShapeCircleClass:
187 return toCSSBasicShapeCircleValue(this)->customCSSText(); 184 return toCSSBasicShapeCircleValue(this)->customCSSText();
188 case BasicShapeEllipseClass: 185 case BasicShapeEllipseClass:
189 return toCSSBasicShapeEllipseValue(this)->customCSSText(); 186 return toCSSBasicShapeEllipseValue(this)->customCSSText();
190 case BasicShapePolygonClass: 187 case BasicShapePolygonClass:
191 return toCSSBasicShapePolygonValue(this)->customCSSText(); 188 return toCSSBasicShapePolygonValue(this)->customCSSText();
192 case BasicShapeInsetClass: 189 case BasicShapeInsetClass:
193 return toCSSBasicShapeInsetValue(this)->customCSSText(); 190 return toCSSBasicShapeInsetValue(this)->customCSSText();
194 case BorderImageSliceClass: 191 case BorderImageSliceClass:
195 return toCSSBorderImageSliceValue(this)->customCSSText(); 192 return toCSSBorderImageSliceValue(this)->customCSSText();
196 case CanvasClass:
197 return toCSSCanvasValue(this)->customCSSText();
198 case ColorClass: 193 case ColorClass:
199 return toCSSColorValue(this)->customCSSText(); 194 return toCSSColorValue(this)->customCSSText();
200 case CounterClass: 195 case CounterClass:
201 return toCSSCounterValue(this)->customCSSText(); 196 return toCSSCounterValue(this)->customCSSText();
202 case CursorImageClass: 197 case CursorImageClass:
203 return toCSSCursorImageValue(this)->customCSSText(); 198 return toCSSCursorImageValue(this)->customCSSText();
204 case FontFaceSrcClass: 199 case FontFaceSrcClass:
205 return toCSSFontFaceSrcValue(this)->customCSSText(); 200 return toCSSFontFaceSrcValue(this)->customCSSText();
206 case FontFeatureClass: 201 case FontFeatureClass:
207 return toCSSFontFeatureValue(this)->customCSSText(); 202 return toCSSFontFeatureValue(this)->customCSSText();
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 return; 268 return;
274 case BasicShapePolygonClass: 269 case BasicShapePolygonClass:
275 delete toCSSBasicShapePolygonValue(this); 270 delete toCSSBasicShapePolygonValue(this);
276 return; 271 return;
277 case BasicShapeInsetClass: 272 case BasicShapeInsetClass:
278 delete toCSSBasicShapeInsetValue(this); 273 delete toCSSBasicShapeInsetValue(this);
279 return; 274 return;
280 case BorderImageSliceClass: 275 case BorderImageSliceClass:
281 delete toCSSBorderImageSliceValue(this); 276 delete toCSSBorderImageSliceValue(this);
282 return; 277 return;
283 case CanvasClass:
284 delete toCSSCanvasValue(this);
285 return;
286 case ColorClass: 278 case ColorClass:
287 delete toCSSColorValue(this); 279 delete toCSSColorValue(this);
288 return; 280 return;
289 case CounterClass: 281 case CounterClass:
290 delete toCSSCounterValue(this); 282 delete toCSSCounterValue(this);
291 return; 283 return;
292 case CursorImageClass: 284 case CursorImageClass:
293 delete toCSSCursorImageValue(this); 285 delete toCSSCursorImageValue(this);
294 return; 286 return;
295 case FontFaceSrcClass: 287 case FontFaceSrcClass:
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 return; 383 return;
392 case BasicShapePolygonClass: 384 case BasicShapePolygonClass:
393 toCSSBasicShapePolygonValue(this)->~CSSBasicShapePolygonValue(); 385 toCSSBasicShapePolygonValue(this)->~CSSBasicShapePolygonValue();
394 return; 386 return;
395 case BasicShapeInsetClass: 387 case BasicShapeInsetClass:
396 toCSSBasicShapeInsetValue(this)->~CSSBasicShapeInsetValue(); 388 toCSSBasicShapeInsetValue(this)->~CSSBasicShapeInsetValue();
397 return; 389 return;
398 case BorderImageSliceClass: 390 case BorderImageSliceClass:
399 toCSSBorderImageSliceValue(this)->~CSSBorderImageSliceValue(); 391 toCSSBorderImageSliceValue(this)->~CSSBorderImageSliceValue();
400 return; 392 return;
401 case CanvasClass:
402 toCSSCanvasValue(this)->~CSSCanvasValue();
403 return;
404 case ColorClass: 393 case ColorClass:
405 toCSSColorValue(this)->~CSSColorValue(); 394 toCSSColorValue(this)->~CSSColorValue();
406 return; 395 return;
407 case CounterClass: 396 case CounterClass:
408 toCSSCounterValue(this)->~CSSCounterValue(); 397 toCSSCounterValue(this)->~CSSCounterValue();
409 return; 398 return;
410 case CursorImageClass: 399 case CursorImageClass:
411 toCSSCursorImageValue(this)->~CSSCursorImageValue(); 400 toCSSCursorImageValue(this)->~CSSCursorImageValue();
412 return; 401 return;
413 case FontFaceSrcClass: 402 case FontFaceSrcClass:
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 return; 498 return;
510 case BasicShapePolygonClass: 499 case BasicShapePolygonClass:
511 toCSSBasicShapePolygonValue(this)->traceAfterDispatch(visitor); 500 toCSSBasicShapePolygonValue(this)->traceAfterDispatch(visitor);
512 return; 501 return;
513 case BasicShapeInsetClass: 502 case BasicShapeInsetClass:
514 toCSSBasicShapeInsetValue(this)->traceAfterDispatch(visitor); 503 toCSSBasicShapeInsetValue(this)->traceAfterDispatch(visitor);
515 return; 504 return;
516 case BorderImageSliceClass: 505 case BorderImageSliceClass:
517 toCSSBorderImageSliceValue(this)->traceAfterDispatch(visitor); 506 toCSSBorderImageSliceValue(this)->traceAfterDispatch(visitor);
518 return; 507 return;
519 case CanvasClass:
520 toCSSCanvasValue(this)->traceAfterDispatch(visitor);
521 return;
522 case ColorClass: 508 case ColorClass:
523 toCSSColorValue(this)->traceAfterDispatch(visitor); 509 toCSSColorValue(this)->traceAfterDispatch(visitor);
524 return; 510 return;
525 case CounterClass: 511 case CounterClass:
526 toCSSCounterValue(this)->traceAfterDispatch(visitor); 512 toCSSCounterValue(this)->traceAfterDispatch(visitor);
527 return; 513 return;
528 case CursorImageClass: 514 case CursorImageClass:
529 toCSSCursorImageValue(this)->traceAfterDispatch(visitor); 515 toCSSCursorImageValue(this)->traceAfterDispatch(visitor);
530 return; 516 return;
531 case FontFaceSrcClass: 517 case FontFaceSrcClass:
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 toCSSSVGDocumentValue(this)->traceAfterDispatch(visitor); 596 toCSSSVGDocumentValue(this)->traceAfterDispatch(visitor);
611 return; 597 return;
612 case CSSContentDistributionClass: 598 case CSSContentDistributionClass:
613 toCSSContentDistributionValue(this)->traceAfterDispatch(visitor); 599 toCSSContentDistributionValue(this)->traceAfterDispatch(visitor);
614 return; 600 return;
615 } 601 }
616 ASSERT_NOT_REACHED(); 602 ASSERT_NOT_REACHED();
617 } 603 }
618 604
619 } 605 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSValue.h ('k') | third_party/WebKit/Source/core/css/CSSValueKeywords.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698