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

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

Issue 2522043003: Replace ASSERT_NOT_REACHED -> NOTREACHED (Closed)
Patch Set: Created 4 years 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 return compareCSSValues<CSSImageSetValue>(*this, other); 204 return compareCSSValues<CSSImageSetValue>(*this, other);
205 case CSSContentDistributionClass: 205 case CSSContentDistributionClass:
206 return compareCSSValues<CSSContentDistributionValue>(*this, other); 206 return compareCSSValues<CSSContentDistributionValue>(*this, other);
207 case CustomPropertyDeclarationClass: 207 case CustomPropertyDeclarationClass:
208 return compareCSSValues<CSSCustomPropertyDeclaration>(*this, other); 208 return compareCSSValues<CSSCustomPropertyDeclaration>(*this, other);
209 case VariableReferenceClass: 209 case VariableReferenceClass:
210 return compareCSSValues<CSSVariableReferenceValue>(*this, other); 210 return compareCSSValues<CSSVariableReferenceValue>(*this, other);
211 case PendingSubstitutionValueClass: 211 case PendingSubstitutionValueClass:
212 return compareCSSValues<CSSPendingSubstitutionValue>(*this, other); 212 return compareCSSValues<CSSPendingSubstitutionValue>(*this, other);
213 } 213 }
214 ASSERT_NOT_REACHED(); 214 NOTREACHED();
215 return false; 215 return false;
216 } 216 }
217 return false; 217 return false;
218 } 218 }
219 219
220 String CSSValue::cssText() const { 220 String CSSValue::cssText() const {
221 switch (getClassType()) { 221 switch (getClassType()) {
222 case BasicShapeCircleClass: 222 case BasicShapeCircleClass:
223 return toCSSBasicShapeCircleValue(this)->customCSSText(); 223 return toCSSBasicShapeCircleValue(this)->customCSSText();
224 case BasicShapeEllipseClass: 224 case BasicShapeEllipseClass:
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 return toCSSImageSetValue(this)->customCSSText(); 297 return toCSSImageSetValue(this)->customCSSText();
298 case CSSContentDistributionClass: 298 case CSSContentDistributionClass:
299 return toCSSContentDistributionValue(this)->customCSSText(); 299 return toCSSContentDistributionValue(this)->customCSSText();
300 case VariableReferenceClass: 300 case VariableReferenceClass:
301 return toCSSVariableReferenceValue(this)->customCSSText(); 301 return toCSSVariableReferenceValue(this)->customCSSText();
302 case CustomPropertyDeclarationClass: 302 case CustomPropertyDeclarationClass:
303 return toCSSCustomPropertyDeclaration(this)->customCSSText(); 303 return toCSSCustomPropertyDeclaration(this)->customCSSText();
304 case PendingSubstitutionValueClass: 304 case PendingSubstitutionValueClass:
305 return toCSSPendingSubstitutionValue(this)->customCSSText(); 305 return toCSSPendingSubstitutionValue(this)->customCSSText();
306 } 306 }
307 ASSERT_NOT_REACHED(); 307 NOTREACHED();
308 return String(); 308 return String();
309 } 309 }
310 310
311 void CSSValue::finalizeGarbageCollectedObject() { 311 void CSSValue::finalizeGarbageCollectedObject() {
312 switch (getClassType()) { 312 switch (getClassType()) {
313 case BasicShapeCircleClass: 313 case BasicShapeCircleClass:
314 toCSSBasicShapeCircleValue(this)->~CSSBasicShapeCircleValue(); 314 toCSSBasicShapeCircleValue(this)->~CSSBasicShapeCircleValue();
315 return; 315 return;
316 case BasicShapeEllipseClass: 316 case BasicShapeEllipseClass:
317 toCSSBasicShapeEllipseValue(this)->~CSSBasicShapeEllipseValue(); 317 toCSSBasicShapeEllipseValue(this)->~CSSBasicShapeEllipseValue();
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 case VariableReferenceClass: 431 case VariableReferenceClass:
432 toCSSVariableReferenceValue(this)->~CSSVariableReferenceValue(); 432 toCSSVariableReferenceValue(this)->~CSSVariableReferenceValue();
433 return; 433 return;
434 case CustomPropertyDeclarationClass: 434 case CustomPropertyDeclarationClass:
435 toCSSCustomPropertyDeclaration(this)->~CSSCustomPropertyDeclaration(); 435 toCSSCustomPropertyDeclaration(this)->~CSSCustomPropertyDeclaration();
436 return; 436 return;
437 case PendingSubstitutionValueClass: 437 case PendingSubstitutionValueClass:
438 toCSSPendingSubstitutionValue(this)->~CSSPendingSubstitutionValue(); 438 toCSSPendingSubstitutionValue(this)->~CSSPendingSubstitutionValue();
439 return; 439 return;
440 } 440 }
441 ASSERT_NOT_REACHED(); 441 NOTREACHED();
442 } 442 }
443 443
444 DEFINE_TRACE(CSSValue) { 444 DEFINE_TRACE(CSSValue) {
445 switch (getClassType()) { 445 switch (getClassType()) {
446 case BasicShapeCircleClass: 446 case BasicShapeCircleClass:
447 toCSSBasicShapeCircleValue(this)->traceAfterDispatch(visitor); 447 toCSSBasicShapeCircleValue(this)->traceAfterDispatch(visitor);
448 return; 448 return;
449 case BasicShapeEllipseClass: 449 case BasicShapeEllipseClass:
450 toCSSBasicShapeEllipseValue(this)->traceAfterDispatch(visitor); 450 toCSSBasicShapeEllipseValue(this)->traceAfterDispatch(visitor);
451 return; 451 return;
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 toCSSCustomPropertyDeclaration(this)->traceAfterDispatch(visitor); 567 toCSSCustomPropertyDeclaration(this)->traceAfterDispatch(visitor);
568 return; 568 return;
569 case PendingSubstitutionValueClass: 569 case PendingSubstitutionValueClass:
570 toCSSPendingSubstitutionValue(this)->traceAfterDispatch(visitor); 570 toCSSPendingSubstitutionValue(this)->traceAfterDispatch(visitor);
571 return; 571 return;
572 } 572 }
573 ASSERT_NOT_REACHED(); 573 ASSERT_NOT_REACHED();
574 } 574 }
575 575
576 } // namespace blink 576 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSSelector.cpp ('k') | third_party/WebKit/Source/core/css/FontFace.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698