Index: Source/core/css/CSSToLengthConversionData.cpp |
diff --git a/Source/core/css/CSSToLengthConversionData.cpp b/Source/core/css/CSSToLengthConversionData.cpp |
index 2e97cb814f3669646715e8894d83a4b31483e9a5..43f836cfa65036a66970ea59d0adba1af24c8972 100644 |
--- a/Source/core/css/CSSToLengthConversionData.cpp |
+++ b/Source/core/css/CSSToLengthConversionData.cpp |
@@ -77,10 +77,9 @@ CSSToLengthConversionData::CSSToLengthConversionData(const RenderStyle* style, c |
: m_style(style) |
, m_fontSizes(fontSizes) |
, m_viewportSize(viewportSize) |
- , m_zoom(zoom) |
+ , m_zoom(clampTo<float>(zoom, std::numeric_limits<float>::denorm_min())) |
{ |
ASSERT(m_style); |
- ASSERT(zoom > 0); |
} |
CSSToLengthConversionData::CSSToLengthConversionData(const RenderStyle* style, const RenderStyle* rootStyle, const RenderView* renderView, float zoom) |