| Index: Source/core/fetch/ImageResource.h
|
| diff --git a/Source/core/fetch/ImageResource.h b/Source/core/fetch/ImageResource.h
|
| index 63b50b5e51b2d9a1f1c1612c241933068a6c9aff..2092d9f3a330eca255ce5acea17363df32812c4d 100644
|
| --- a/Source/core/fetch/ImageResource.h
|
| +++ b/Source/core/fetch/ImageResource.h
|
| @@ -65,6 +65,9 @@ public:
|
| bool usesImageContainerSize() const;
|
| bool imageHasRelativeWidth() const;
|
| bool imageHasRelativeHeight() const;
|
| + // 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; }
|
|
|
| enum SizeType {
|
| NormalSize, // Report the size of the image associated with a certain renderer
|
| @@ -116,10 +119,12 @@ private:
|
| typedef pair<IntSize, float> SizeAndZoom;
|
| typedef HashMap<const ImageResourceClient*, SizeAndZoom> ContainerSizeRequests;
|
| ContainerSizeRequests m_pendingContainerSizeRequests;
|
| + float m_devicePixelRatioHeaderValue;
|
|
|
| RefPtr<WebCore::Image> m_image;
|
| OwnPtr<SVGImageCache> m_svgImageCache;
|
| bool m_loadingMultipartContent;
|
| + bool m_hasDevicePixelRatioHeaderValue;
|
| };
|
|
|
| }
|
|
|