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

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

Issue 199273005: Oilpan: Change the name of the finalization method that can be (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 case SVGPaintClass: 390 case SVGPaintClass:
391 delete toSVGPaint(this); 391 delete toSVGPaint(this);
392 return; 392 return;
393 case CSSSVGDocumentClass: 393 case CSSSVGDocumentClass:
394 delete toCSSSVGDocumentValue(this); 394 delete toCSSSVGDocumentValue(this);
395 return; 395 return;
396 } 396 }
397 ASSERT_NOT_REACHED(); 397 ASSERT_NOT_REACHED();
398 } 398 }
399 399
400 void CSSValue::finalize() 400 void CSSValue::finalizeGarbageCollectedObject()
401 { 401 {
402 if (m_isTextClone) { 402 if (m_isTextClone) {
403 ASSERT(isCSSOMSafe()); 403 ASSERT(isCSSOMSafe());
404 static_cast<TextCloneCSSValue*>(this)->~TextCloneCSSValue(); 404 static_cast<TextCloneCSSValue*>(this)->~TextCloneCSSValue();
405 return; 405 return;
406 } 406 }
407 ASSERT(!isCSSOMSafe() || isSubtypeExposedToCSSOM()); 407 ASSERT(!isCSSOMSafe() || isSubtypeExposedToCSSOM());
408 408
409 switch (classType()) { 409 switch (classType()) {
410 case AspectRatioClass: 410 case AspectRatioClass:
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 return toCSSImageSetValue(this)->cloneForCSSOM(); 631 return toCSSImageSetValue(this)->cloneForCSSOM();
632 case SVGPaintClass: 632 case SVGPaintClass:
633 return toSVGPaint(this)->cloneForCSSOM(); 633 return toSVGPaint(this)->cloneForCSSOM();
634 default: 634 default:
635 ASSERT(!isSubtypeExposedToCSSOM()); 635 ASSERT(!isSubtypeExposedToCSSOM());
636 return TextCloneCSSValue::create(classType(), cssText()); 636 return TextCloneCSSValue::create(classType(), cssText());
637 } 637 }
638 } 638 }
639 639
640 } 640 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698