Index: Source/core/css/CSSToStyleMap.cpp |
diff --git a/Source/core/css/CSSToStyleMap.cpp b/Source/core/css/CSSToStyleMap.cpp |
index 0ccfbf4d1ad1e4302d7d0647ffe81e4df5911329..76331f7e2bb51ff747b2f3d2c3ee518b230e49bd 100644 |
--- a/Source/core/css/CSSToStyleMap.cpp |
+++ b/Source/core/css/CSSToStyleMap.cpp |
@@ -308,8 +308,7 @@ void CSSToStyleMap::mapFillMaskSourceType(CSSPropertyID, FillLayer* layer, CSSVa |
if (!value->isPrimitiveValue()) |
return; |
- CSSPrimitiveValue* primitiveValue = static_cast<CSSPrimitiveValue*>(value); |
- switch (primitiveValue->getValueID()) { |
+ switch (toCSSPrimitiveValue(value)->getValueID()) { |
case CSSValueAlpha: |
type = MaskAlpha; |
break; |
@@ -335,8 +334,7 @@ void CSSToStyleMap::mapAnimationDelay(CSSAnimationData* animation, CSSValue* val |
if (!value->isPrimitiveValue()) |
return; |
- CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); |
- animation->setDelay(primitiveValue->computeTime<double, CSSPrimitiveValue::Seconds>()); |
+ animation->setDelay(toCSSPrimitiveValue(value)->computeTime<double, CSSPrimitiveValue::Seconds>()); |
} |
void CSSToStyleMap::mapAnimationDirection(CSSAnimationData* layer, CSSValue* value) const |
@@ -349,8 +347,7 @@ void CSSToStyleMap::mapAnimationDirection(CSSAnimationData* layer, CSSValue* val |
if (!value->isPrimitiveValue()) |
return; |
- CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); |
- switch (primitiveValue->getValueID()) { |
+ switch (toCSSPrimitiveValue(value)->getValueID()) { |
case CSSValueNormal: |
layer->setDirection(CSSAnimationData::AnimationDirectionNormal); |
break; |