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

Unified Diff: Source/web/WebLocalFrameImpl.cpp

Issue 1112513005: Reload image bypassing the cache (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: japhet comments 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/web/WebLocalFrameImpl.cpp
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp
index 6413b4695320d07018765c5d942c8a462e6f3177..d8673bbabcd520223633261b8837ac93f4633ef2 100644
--- a/Source/web/WebLocalFrameImpl.cpp
+++ b/Source/web/WebLocalFrameImpl.cpp
@@ -124,6 +124,7 @@
#include "core/html/HTMLFrameElementBase.h"
#include "core/html/HTMLFrameOwnerElement.h"
#include "core/html/HTMLHeadElement.h"
+#include "core/html/HTMLImageElement.h"
#include "core/html/HTMLInputElement.h"
#include "core/html/HTMLLinkElement.h"
#include "core/html/PluginDocument.h"
@@ -923,6 +924,15 @@ void WebLocalFrameImpl::reloadWithOverrideURL(const WebURL& overrideUrl, bool ig
frame()->loader().reload(ignoreCache ? EndToEndReload : NormalReload, overrideUrl);
}
+void WebLocalFrameImpl::reloadImage(const WebNode& webNode)
+{
+ const Node* node = webNode.constUnwrap<Node>();
+ if (isHTMLImageElement(*node)) {
+ const HTMLImageElement& imageElement = toHTMLImageElement(*node);
+ imageElement.forceReload();
+ }
+}
+
void WebLocalFrameImpl::loadRequest(const WebURLRequest& request)
{
ASSERT(frame());

Powered by Google App Engine
This is Rietveld 408576698