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

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

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/css/CSSCursorImageValue.cpp ('k') | Source/core/fetch/ImageResource.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/ImageResource.h
===================================================================
--- Source/core/fetch/ImageResource.h (revision 162906)
+++ Source/core/fetch/ImageResource.h (working copy)
@@ -65,6 +65,7 @@
bool usesImageContainerSize() const;
bool imageHasRelativeWidth() const;
bool imageHasRelativeHeight() const;
+ void setDeviceScaleFactor(float scale) { m_deviceScaleFactor = scale; }
// The device pixel ratio we got from the server for this image, or 1.0.
float devicePixelRatioHeaderValue() const { return m_devicePixelRatioHeaderValue; }
bool hasDevicePixelRatioHeaderValue() const { return m_hasDevicePixelRatioHeaderValue; }
@@ -120,6 +121,7 @@
typedef HashMap<const ImageResourceClient*, SizeAndZoom> ContainerSizeRequests;
ContainerSizeRequests m_pendingContainerSizeRequests;
float m_devicePixelRatioHeaderValue;
+ float m_deviceScaleFactor;
RefPtr<WebCore::Image> m_image;
OwnPtr<SVGImageCache> m_svgImageCache;
« no previous file with comments | « Source/core/css/CSSCursorImageValue.cpp ('k') | Source/core/fetch/ImageResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698