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

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

Issue 18311002: Partial implementation of CSSVariablesMap for CSS Variables CSSOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased onto ToT, cleaned up includes Created 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/CSSStyleDeclaration.idl ('k') | Source/core/css/CSSVariableValue.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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 return static_cast<const CSSImageSetValue*>(this)->customCssText(); 293 return static_cast<const CSSImageSetValue*>(this)->customCssText();
294 case CSSFilterClass: 294 case CSSFilterClass:
295 return static_cast<const CSSFilterValue*>(this)->customCssText(); 295 return static_cast<const CSSFilterValue*>(this)->customCssText();
296 case CSSArrayFunctionValueClass: 296 case CSSArrayFunctionValueClass:
297 return static_cast<const CSSArrayFunctionValue*>(this)->customCssText(); 297 return static_cast<const CSSArrayFunctionValue*>(this)->customCssText();
298 case CSSMixFunctionValueClass: 298 case CSSMixFunctionValueClass:
299 return static_cast<const CSSMixFunctionValue*>(this)->customCssText(); 299 return static_cast<const CSSMixFunctionValue*>(this)->customCssText();
300 case CSSShaderClass: 300 case CSSShaderClass:
301 return static_cast<const CSSShaderValue*>(this)->customCssText(); 301 return static_cast<const CSSShaderValue*>(this)->customCssText();
302 case VariableClass: 302 case VariableClass:
303 return static_cast<const CSSVariableValue*>(this)->value(); 303 return toCSSVariableValue(this)->value();
304 case SVGColorClass: 304 case SVGColorClass:
305 return static_cast<const SVGColor*>(this)->customCssText(); 305 return static_cast<const SVGColor*>(this)->customCssText();
306 case SVGPaintClass: 306 case SVGPaintClass:
307 return static_cast<const SVGPaint*>(this)->customCssText(); 307 return static_cast<const SVGPaint*>(this)->customCssText();
308 case CSSSVGDocumentClass: 308 case CSSSVGDocumentClass:
309 return static_cast<const CSSSVGDocumentValue*>(this)->customCssText(); 309 return static_cast<const CSSSVGDocumentValue*>(this)->customCssText();
310 } 310 }
311 ASSERT_NOT_REACHED(); 311 ASSERT_NOT_REACHED();
312 return String(); 312 return String();
313 } 313 }
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 case CSSArrayFunctionValueClass: 422 case CSSArrayFunctionValueClass:
423 delete static_cast<CSSArrayFunctionValue*>(this); 423 delete static_cast<CSSArrayFunctionValue*>(this);
424 return; 424 return;
425 case CSSMixFunctionValueClass: 425 case CSSMixFunctionValueClass:
426 delete static_cast<CSSMixFunctionValue*>(this); 426 delete static_cast<CSSMixFunctionValue*>(this);
427 return; 427 return;
428 case CSSShaderClass: 428 case CSSShaderClass:
429 delete static_cast<CSSShaderValue*>(this); 429 delete static_cast<CSSShaderValue*>(this);
430 return; 430 return;
431 case VariableClass: 431 case VariableClass:
432 delete static_cast<CSSVariableValue*>(this); 432 delete toCSSVariableValue(this);
433 return; 433 return;
434 case SVGColorClass: 434 case SVGColorClass:
435 delete static_cast<SVGColor*>(this); 435 delete static_cast<SVGColor*>(this);
436 return; 436 return;
437 case SVGPaintClass: 437 case SVGPaintClass:
438 delete static_cast<SVGPaint*>(this); 438 delete static_cast<SVGPaint*>(this);
439 return; 439 return;
440 case CSSSVGDocumentClass: 440 case CSSSVGDocumentClass:
441 delete static_cast<CSSSVGDocumentValue*>(this); 441 delete static_cast<CSSSVGDocumentValue*>(this);
442 return; 442 return;
(...skipping 25 matching lines...) Expand all
468 return static_cast<const SVGColor*>(this)->cloneForCSSOM(); 468 return static_cast<const SVGColor*>(this)->cloneForCSSOM();
469 case SVGPaintClass: 469 case SVGPaintClass:
470 return static_cast<const SVGPaint*>(this)->cloneForCSSOM(); 470 return static_cast<const SVGPaint*>(this)->cloneForCSSOM();
471 default: 471 default:
472 ASSERT(!isSubtypeExposedToCSSOM()); 472 ASSERT(!isSubtypeExposedToCSSOM());
473 return TextCloneCSSValue::create(classType(), cssText()); 473 return TextCloneCSSValue::create(classType(), cssText());
474 } 474 }
475 } 475 }
476 476
477 } 477 }
OLDNEW
« no previous file with comments | « Source/core/css/CSSStyleDeclaration.idl ('k') | Source/core/css/CSSVariableValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698