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

Unified Diff: third_party/WebKit/Source/core/style/StyleImage.cpp

Issue 1912063004: Align image sizes for SVG with raster image size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add NeedsManualRebaseline to tests Created 4 years, 8 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
« no previous file with comments | « third_party/WebKit/LayoutTests/svg/css/background-non-integer-viewbox-expected.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/style/StyleImage.cpp
diff --git a/third_party/WebKit/Source/core/style/StyleImage.cpp b/third_party/WebKit/Source/core/style/StyleImage.cpp
index b56d90dd4e7f7f313c6ea71a5ecf8396d637c4bd..d1bb2651f632576527e1bc604548b8a596f2bda9 100644
--- a/third_party/WebKit/Source/core/style/StyleImage.cpp
+++ b/third_party/WebKit/Source/core/style/StyleImage.cpp
@@ -31,7 +31,8 @@ LayoutSize StyleImage::imageSizeForSVGImage(SVGImage* svgImage, float multiplier
{
FloatSize unzoomedDefaultObjectSize(defaultObjectSize);
unzoomedDefaultObjectSize.scale(1 / multiplier);
- return applyZoom(LayoutSize(svgImage->concreteObjectSize(svgImage->concreteObjectSize(unzoomedDefaultObjectSize))), multiplier);
+ LayoutSize imageSize(roundedIntSize(svgImage->concreteObjectSize(unzoomedDefaultObjectSize)));
+ return applyZoom(imageSize, multiplier);
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/LayoutTests/svg/css/background-non-integer-viewbox-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698