Index: Source/core/rendering/shapes/RasterShape.cpp |
diff --git a/Source/core/rendering/shapes/RasterShape.cpp b/Source/core/rendering/shapes/RasterShape.cpp |
index 958ffab8eab9e773cdb53c1cf43e9b482e9f231d..e2784d253d43a78b039f57aa32dbedeae5ed3921 100644 |
--- a/Source/core/rendering/shapes/RasterShape.cpp |
+++ b/Source/core/rendering/shapes/RasterShape.cpp |
@@ -142,7 +142,7 @@ const RasterShapeIntervals& RasterShape::marginIntervals() const |
if (!shapeMargin()) |
return *m_intervals; |
- int shapeMarginInt = clampToPositiveInteger(ceil(shapeMargin())); |
+ int shapeMarginInt = clampTo<int>(ceil(shapeMargin()), 0); |
int maxShapeMarginInt = std::max(m_marginRectSize.width(), m_marginRectSize.height()) * sqrtf(2); |
if (!m_marginIntervals) |
m_marginIntervals = m_intervals->computeShapeMarginIntervals(std::min(shapeMarginInt, maxShapeMarginInt)); |