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

Unified Diff: Source/core/rendering/RenderImage.h

Issue 369423002: Have srcset respond to viewport changes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Oilpan comments Created 6 years, 5 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
« Source/core/html/HTMLImageElement.h ('K') | « Source/core/loader/ImageLoader.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderImage.h
diff --git a/Source/core/rendering/RenderImage.h b/Source/core/rendering/RenderImage.h
index 0313703b8c79570a15f86c106a06b17e76d0412d..f45e3fc5a86017878fd840ff891ed9427817a05e 100644
--- a/Source/core/rendering/RenderImage.h
+++ b/Source/core/rendering/RenderImage.h
@@ -64,6 +64,12 @@ public:
inline void setImageDevicePixelRatio(float factor) { m_imageDevicePixelRatio = factor; }
float imageDevicePixelRatio() const { return m_imageDevicePixelRatio; }
+ virtual void intrinsicSizeChanged() OVERRIDE
+ {
+ if (m_imageResource)
+ imageChanged(m_imageResource->imagePtr());
+ }
+
protected:
virtual bool needsPreferredWidthsRecalculation() const OVERRIDE FINAL;
virtual RenderBox* embeddedContentBox() const OVERRIDE FINAL;
@@ -76,12 +82,6 @@ protected:
virtual void layout() OVERRIDE;
virtual bool updateImageLoadingPriorities() OVERRIDE FINAL;
- virtual void intrinsicSizeChanged() OVERRIDE
- {
- if (m_imageResource)
- imageChanged(m_imageResource->imagePtr());
- }
-
private:
virtual const char* renderName() const OVERRIDE { return "RenderImage"; }
« Source/core/html/HTMLImageElement.h ('K') | « Source/core/loader/ImageLoader.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698