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

Unified Diff: Source/core/css/CSSCursorImageValue.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 | « no previous file | Source/core/fetch/ImageResource.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSCursorImageValue.cpp
===================================================================
--- Source/core/css/CSSCursorImageValue.cpp (revision 162906)
+++ Source/core/css/CSSCursorImageValue.cpp (working copy)
@@ -144,8 +144,13 @@
m_image = toCSSImageValue(m_imageValue.get())->cachedImage(loader);
}
- if (m_image && m_image->isImageResource())
- return toStyleFetchedImage(m_image);
+ if (m_image && m_image->isImageResource()) {
+ StyleFetchedImage* fetched = toStyleFetchedImage(m_image);
+ ImageResource* resource = fetched->cachedImage();
+ if (resource)
+ resource->setDeviceScaleFactor(deviceScaleFactor);
+ return fetched;
+ }
return 0;
}
« no previous file with comments | « no previous file | Source/core/fetch/ImageResource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698