Index: Source/core/rendering/RenderBoxModelObject.cpp |
diff --git a/Source/core/rendering/RenderBoxModelObject.cpp b/Source/core/rendering/RenderBoxModelObject.cpp |
index aada21668d2aeabe3d149fa3e8ad5fe5988748ad..79b0f224128da5c843c62afcf167a72543d9af58 100644 |
--- a/Source/core/rendering/RenderBoxModelObject.cpp |
+++ b/Source/core/rendering/RenderBoxModelObject.cpp |
@@ -934,7 +934,7 @@ IntSize RenderBoxModelObject::calculateFillTileSize(const FillLayer* fillLayer, |
float verticalScaleFactor = imageIntrinsicSize.height() |
? static_cast<float>(positioningAreaSize.height()) / imageIntrinsicSize.height() : 1; |
float scaleFactor = type == Contain ? min(horizontalScaleFactor, verticalScaleFactor) : max(horizontalScaleFactor, verticalScaleFactor); |
- return IntSize(max(1, static_cast<int>(imageIntrinsicSize.width() * scaleFactor)), max(1, static_cast<int>(imageIntrinsicSize.height() * scaleFactor))); |
+ return IntSize(max(1, static_cast<int>(round(imageIntrinsicSize.width() * scaleFactor))), max(1, static_cast<int>(round(imageIntrinsicSize.height() * scaleFactor)))); |
eseidel
2013/09/18 18:59:45
should this just be lround?
|
} |
} |