Index: Source/core/css/resolver/StyleBuilderCustom.cpp |
diff --git a/Source/core/css/resolver/StyleBuilderCustom.cpp b/Source/core/css/resolver/StyleBuilderCustom.cpp |
index 24cdb1af8fdad275965a8ddc4e53a0daacfde8e2..3f57ca191f16b5fa3b182cb8745fcafca2236548 100644 |
--- a/Source/core/css/resolver/StyleBuilderCustom.cpp |
+++ b/Source/core/css/resolver/StyleBuilderCustom.cpp |
@@ -1207,8 +1207,8 @@ static bool hasVariableReference(CSSValue* value) |
return primitiveValue->hasVariableReference(); |
} |
- if (value->isCalculationValue()) |
- return static_cast<CSSCalcValue*>(value)->hasVariableReference(); |
+ if (value->isCalcValue()) |
+ return toCSSCalcValue(value)->hasVariableReference(); |
if (value->isReflectValue()) { |
CSSReflectValue* reflectValue = toCSSReflectValue(value); |