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

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

Issue 24932003: Use DEFINE_CSS_VALUE_TYPE_CASTS instead of using manual type cast function for CSSShaderValue (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/CSSValue.h ('k') | Source/core/css/resolver/FilterOperationResolver.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 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 case CSSFilterClass: 420 case CSSFilterClass:
421 delete static_cast<CSSFilterValue*>(this); 421 delete static_cast<CSSFilterValue*>(this);
422 return; 422 return;
423 case CSSArrayFunctionValueClass: 423 case CSSArrayFunctionValueClass:
424 delete static_cast<CSSArrayFunctionValue*>(this); 424 delete static_cast<CSSArrayFunctionValue*>(this);
425 return; 425 return;
426 case CSSMixFunctionValueClass: 426 case CSSMixFunctionValueClass:
427 delete static_cast<CSSMixFunctionValue*>(this); 427 delete static_cast<CSSMixFunctionValue*>(this);
428 return; 428 return;
429 case CSSShaderClass: 429 case CSSShaderClass:
430 delete static_cast<CSSShaderValue*>(this); 430 delete toCSSShaderValue(this);
431 return; 431 return;
432 case VariableClass: 432 case VariableClass:
433 delete toCSSVariableValue(this); 433 delete toCSSVariableValue(this);
434 return; 434 return;
435 case SVGColorClass: 435 case SVGColorClass:
436 delete static_cast<SVGColor*>(this); 436 delete static_cast<SVGColor*>(this);
437 return; 437 return;
438 case SVGPaintClass: 438 case SVGPaintClass:
439 delete static_cast<SVGPaint*>(this); 439 delete static_cast<SVGPaint*>(this);
440 return; 440 return;
(...skipping 28 matching lines...) Expand all
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/CSSValue.h ('k') | Source/core/css/resolver/FilterOperationResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698