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

Unified Diff: Source/core/css/CSSValue.cpp

Issue 24467007: Generate toCSSCalcValue() instead of using manual inline functions (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/CSSValue.h ('k') | Source/core/css/resolver/StyleBuilderCustom.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSValue.cpp
diff --git a/Source/core/css/CSSValue.cpp b/Source/core/css/CSSValue.cpp
index c32bab76e10556a24eec72a80c65028a423ad5b6..9f14cc308697d53465a1a2cab9edbe93455e4640 100644
--- a/Source/core/css/CSSValue.cpp
+++ b/Source/core/css/CSSValue.cpp
@@ -412,7 +412,7 @@ void CSSValue::destroy()
delete static_cast<CSSLineBoxContainValue*>(this);
return;
case CalculationClass:
- delete static_cast<CSSCalcValue*>(this);
+ delete toCSSCalcValue(this);
return;
case ImageSetClass:
delete toCSSImageSetValue(this);
« no previous file with comments | « Source/core/css/CSSValue.h ('k') | Source/core/css/resolver/StyleBuilderCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698