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

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

Issue 290203002: <picture>: Update the <img> element when a <source> changes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review comments addressed 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 1b7fbea8b1415f25818062b24aebaadbfc9e8006..7609bd93f100993537bf17a505dc59ffd0bed6a5 100644
--- a/Source/core/html/HTMLImageElement.h
+++ b/Source/core/html/HTMLImageElement.h
@@ -94,6 +94,12 @@ public:
virtual FloatSize sourceSize() const OVERRIDE;
virtual FloatSize defaultDestinationSize() const OVERRIDE;
+ enum UpdateFromElementBehavior {
+ UpdateNormal,
+ UpdateIgnorePreviousError
+ };
+ // public so that HTMLPictureElement can call this as well.
+ void selectSourceURL(UpdateFromElementBehavior);
protected:
explicit HTMLImageElement(Document&, HTMLFormElement* = 0);

Powered by Google App Engine
This is Rietveld 408576698