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

Unified Diff: third_party/WebKit/Source/platform/loader/fetch/RawResource.cpp

Issue 2602793003: Do not reload in ImageResource::fetch() (Closed)
Patch Set: Rebase fix Created 3 years, 10 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: third_party/WebKit/Source/platform/loader/fetch/RawResource.cpp
diff --git a/third_party/WebKit/Source/platform/loader/fetch/RawResource.cpp b/third_party/WebKit/Source/platform/loader/fetch/RawResource.cpp
index 19baca346415da875765abe42ffdc0895db65e9b..c81110727129b5c29949b2d4d342969c635b300f 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/RawResource.cpp
+++ b/third_party/WebKit/Source/platform/loader/fetch/RawResource.cpp
@@ -258,7 +258,9 @@ static bool isCacheableHTTPMethod(const AtomicString& method) {
return method != "POST" && method != "PUT" && method != "DELETE";
}
-bool RawResource::canReuse(const ResourceRequest& newRequest) const {
+bool RawResource::canReuse(const FetchRequest& newFetchRequest) const {
+ const ResourceRequest& newRequest = newFetchRequest.resourceRequest();
+
if (getDataBufferingPolicy() == DoNotBufferData)
return false;

Powered by Google App Engine
This is Rietveld 408576698