Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1184)

Unified Diff: Source/core/paint/BoxPainter.cpp

Issue 659913003: Background image should clamp to minimum size(1, 1) after scale. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/paint/BoxPainter.cpp
diff --git a/Source/core/paint/BoxPainter.cpp b/Source/core/paint/BoxPainter.cpp
index 906b7cc9e06e6e209cff58a69926ba7e288df71c..b5aad6eccd7fdabe975e0a3d83bbaf3479923cf8 100644
--- a/Source/core/paint/BoxPainter.cpp
+++ b/Source/core/paint/BoxPainter.cpp
@@ -839,7 +839,7 @@ IntSize BoxPainter::calculateFillTileSize(const RenderBoxModelObject& obj, const
tileSize = imageIntrinsicSize;
}
- tileSize.clampNegativeToZero();
+ tileSize.clampToMinimumSize(IntSize(1, 1));
return flooredIntSize(tileSize);
}
case SizeNone: {

Powered by Google App Engine
This is Rietveld 408576698