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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/CSSStyleDeclaration.idl ('k') | Source/core/css/CSSVariableValue.h » ('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 c9435ab2148da09f44139c7460076514d1135c5a..bce26452e7277cc92f35e50e480bc8deef6cc439 100644
--- a/Source/core/css/CSSValue.cpp
+++ b/Source/core/css/CSSValue.cpp
@@ -300,7 +300,7 @@ String CSSValue::cssText() const
case CSSShaderClass:
return static_cast<const CSSShaderValue*>(this)->customCssText();
case VariableClass:
- return static_cast<const CSSVariableValue*>(this)->value();
+ return toCSSVariableValue(this)->value();
case SVGColorClass:
return static_cast<const SVGColor*>(this)->customCssText();
case SVGPaintClass:
@@ -429,7 +429,7 @@ void CSSValue::destroy()
delete static_cast<CSSShaderValue*>(this);
return;
case VariableClass:
- delete static_cast<CSSVariableValue*>(this);
+ delete toCSSVariableValue(this);
return;
case SVGColorClass:
delete static_cast<SVGColor*>(this);
« 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