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

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

Issue 136823005: Fix distorted image issue when open some images in a new browser window. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: not plumb knowledge to ImageResource Created 6 years, 10 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
Index: Source/core/fetch/ImageResource.h
diff --git a/Source/core/fetch/ImageResource.h b/Source/core/fetch/ImageResource.h
index a7d64cea618557ac6f606f331299801148e83611..866f45dc354f079afc8d7f11382d876a2e247d5b 100644
--- a/Source/core/fetch/ImageResource.h
+++ b/Source/core/fetch/ImageResource.h
@@ -75,6 +75,7 @@ public:
NormalSize, // Report the size of the image associated with a certain renderer
IntrinsicSize // Report the intrinsic size, i.e. ignore whatever has been set extrinsically.
};
+ LayoutSize bitmapImageSizeRespectingOrientation(float) const;
// This method takes a zoom multiplier that can be used to increase the natural size of the image by the zoom.
LayoutSize imageSizeForRenderer(const RenderObject*, float multiplier, SizeType = NormalSize); // returns the size of the complete image.
void computeIntrinsicDimensions(Length& intrinsicWidth, Length& intrinsicHeight, FloatSize& intrinsicRatio);
@@ -118,6 +119,7 @@ private:
void clearImage();
// If not null, changeRect is the changed part of the image.
void notifyObservers(const IntRect* changeRect = 0);
+ void applyMultiplier(LayoutSize&, float) const;
virtual void switchClientsToRevalidatedResource() OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698