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

Unified Diff: Source/core/fetch/ImageResource.cpp

Issue 105363002: Make SVG images for custom CSS cursors appear sharp on retina displays (Closed) Base URL: http://src.chromium.org/blink/trunk/
Patch Set: Created 7 years 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 | « Source/core/fetch/ImageResource.h ('k') | Source/core/platform/chromium/support/WebCursorInfo.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/ImageResource.cpp
===================================================================
--- Source/core/fetch/ImageResource.cpp (revision 162906)
+++ Source/core/fetch/ImageResource.cpp (working copy)
@@ -46,6 +46,7 @@
ImageResource::ImageResource(const ResourceRequest& resourceRequest)
: Resource(resourceRequest, Image)
, m_devicePixelRatioHeaderValue(1.0)
+ , m_deviceScaleFactor(1.0)
, m_image(0)
, m_loadingMultipartContent(false)
, m_hasDevicePixelRatioHeaderValue(false)
@@ -291,7 +292,7 @@
return;
if (m_response.mimeType() == "image/svg+xml") {
- RefPtr<SVGImage> svgImage = SVGImage::create(this);
+ RefPtr<SVGImage> svgImage = SVGImage::create(this, m_deviceScaleFactor);
m_svgImageCache = SVGImageCache::create(svgImage.get());
m_image = svgImage.release();
} else {
« no previous file with comments | « Source/core/fetch/ImageResource.h ('k') | Source/core/platform/chromium/support/WebCursorInfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698