Index: Source/core/css/CSSToLengthConversionData.h |
diff --git a/Source/core/css/CSSToLengthConversionData.h b/Source/core/css/CSSToLengthConversionData.h |
index c2ee15e1a4d889db54c5190cda2354bfb0fea3b0..e60408130b9b7cb95e8a0038ebaf682cd40d6a27 100644 |
--- a/Source/core/css/CSSToLengthConversionData.h |
+++ b/Source/core/css/CSSToLengthConversionData.h |
@@ -92,7 +92,11 @@ public: |
double viewportMaxPercent() const; |
void setFontSizes(const FontSizes& fontSizes) { m_fontSizes = fontSizes; } |
- void setZoom(float zoom) { m_zoom = clampTo<float>(zoom, std::numeric_limits<float>::denorm_min()); } |
+ void setZoom(float zoom) |
+ { |
+ ASSERT(std::isfinite(zoom) && zoom > 0); |
+ m_zoom = zoom; |
+ } |
CSSToLengthConversionData copyWithAdjustedZoom(float newZoom) const |
{ |