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

Unified Diff: Source/core/html/HTMLImageElement.h

Issue 288033018: Add HTMLPictureElement-based source selection to HTMLImageElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review nits Created 6 years, 7 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/html/HTMLImageElement.h
diff --git a/Source/core/html/HTMLImageElement.h b/Source/core/html/HTMLImageElement.h
index 4d808bebb991290039adb6f843d956b715f1dada..615776823915707dce851952257b382499c8ad05 100644
--- a/Source/core/html/HTMLImageElement.h
+++ b/Source/core/html/HTMLImageElement.h
@@ -33,6 +33,7 @@
namespace WebCore {
class HTMLFormElement;
+class ImageCandidate;
class HTMLImageElement FINAL : public HTMLElement, public CanvasImageSource {
public:
@@ -123,6 +124,8 @@ private:
virtual Image* imageContents() OVERRIDE;
void resetFormOwner();
+ ImageCandidate findBestFitImageFromPictureParent();
+ void setBestFitURLAndDPRFromImageCandidate(const ImageCandidate&);
HTMLImageLoader m_imageLoader;
// m_form should be a strong reference in Oilpan.
« no previous file with comments | « LayoutTests/fast/dom/HTMLImageElement/resources/image-set-2x.png ('k') | Source/core/html/HTMLImageElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698