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

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

Issue 1694263003: Add Image::updateConcreteSize() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor-size-calculation-in
Patch Set: Add some documentation and polish title of test. Created 4 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: third_party/WebKit/Source/core/fetch/ImageResource.h
diff --git a/third_party/WebKit/Source/core/fetch/ImageResource.h b/third_party/WebKit/Source/core/fetch/ImageResource.h
index d176d050ca30a1121368a79fed28f2c3dd4c9c6e..694ddde6f802401dc7230b04a66c318a4e84c050 100644
--- a/third_party/WebKit/Source/core/fetch/ImageResource.h
+++ b/third_party/WebKit/Source/core/fetch/ImageResource.h
@@ -80,6 +80,7 @@ public:
float devicePixelRatioHeaderValue() const { return m_devicePixelRatioHeaderValue; }
bool hasDevicePixelRatioHeaderValue() const { return m_hasDevicePixelRatioHeaderValue; }
+ void updateConcreteObjectSize(const LayoutSize& defaultObjectSize);
fs 2016/02/23 11:44:23 Thought: Could we avoid adding additional logistic
davve 2016/02/23 13:15:30 Sounds interesting and likely a good idea. Not sur
fs 2016/02/23 14:52:00 Since it's a definite maybe, creating an issue mig
enum SizeType {
IntrinsicSize, // Report the intrinsic size.
IntrinsicCorrectedToDPR, // Report the intrinsic size corrected to account for image density.

Powered by Google App Engine
This is Rietveld 408576698