Index: Source/core/css/MediaQueryEvaluator.cpp |
diff --git a/Source/core/css/MediaQueryEvaluator.cpp b/Source/core/css/MediaQueryEvaluator.cpp |
index bf07d2d0f86dd89c0f3701cb2875c9140a8e6b58..01800e443c81384c0085ecf375fc1192d7509b1b 100644 |
--- a/Source/core/css/MediaQueryEvaluator.cpp |
+++ b/Source/core/css/MediaQueryEvaluator.cpp |
@@ -172,7 +172,7 @@ bool compareValue(T a, T b, MediaFeaturePrefix op) |
static bool compareAspectRatioValue(CSSValue* value, int width, int height, MediaFeaturePrefix op) |
{ |
if (value->isAspectRatioValue()) { |
- CSSAspectRatioValue* aspectRatio = static_cast<CSSAspectRatioValue*>(value); |
+ CSSAspectRatioValue* aspectRatio = toCSSAspectRatioValue(value); |
return compareValue(width * static_cast<int>(aspectRatio->denominatorValue()), height * static_cast<int>(aspectRatio->numeratorValue()), op); |
} |