Index: Source/core/css/resolver/StyleBuilderCustom.cpp |
diff --git a/Source/core/css/resolver/StyleBuilderCustom.cpp b/Source/core/css/resolver/StyleBuilderCustom.cpp |
index 26e457f31baf2d55418a1b65730240a637142d32..24cdb1af8fdad275965a8ddc4e53a0daacfde8e2 100644 |
--- a/Source/core/css/resolver/StyleBuilderCustom.cpp |
+++ b/Source/core/css/resolver/StyleBuilderCustom.cpp |
@@ -629,7 +629,7 @@ void StyleBuilderFunctions::applyValueCSSPropertyWebkitAspectRatio(StyleResolver |
state.style()->setHasAspectRatio(false); |
return; |
} |
- CSSAspectRatioValue* aspectRatioValue = static_cast<CSSAspectRatioValue*>(value); |
+ CSSAspectRatioValue* aspectRatioValue = toCSSAspectRatioValue(value); |
state.style()->setHasAspectRatio(true); |
state.style()->setAspectRatioDenominator(aspectRatioValue->denominatorValue()); |
state.style()->setAspectRatioNumerator(aspectRatioValue->numeratorValue()); |