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

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

Issue 1112513005: Reload image bypassing the cache (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: nit Created 5 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.cpp
diff --git a/Source/core/html/HTMLImageElement.cpp b/Source/core/html/HTMLImageElement.cpp
index a478b00d85924d81431dacbbcd778d30353579cf..5a38f99e662811dbdd0e26097a4abbe595f5873d 100644
--- a/Source/core/html/HTMLImageElement.cpp
+++ b/Source/core/html/HTMLImageElement.cpp
@@ -638,6 +638,11 @@ float HTMLImageElement::sourceSize(Element& element)
return SizesAttributeParser(MediaValuesDynamic::create(document()), sizes).length();
}
+void HTMLImageElement::forceReload() const
+{
+ imageLoader().updateFromElement(ImageLoader::UpdateForcedReload);
+}
+
void HTMLImageElement::selectSourceURL(ImageLoader::UpdateFromElementBehavior behavior)
{
if (!document().isActive())

Powered by Google App Engine
This is Rietveld 408576698