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

Unified Diff: Source/core/loader/ImageLoader.cpp

Issue 640463003: MemoryCache: Enable MemoryCache to have multiple isolated resource maps (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: remake Created 6 years, 2 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/loader/ImageLoader.cpp
diff --git a/Source/core/loader/ImageLoader.cpp b/Source/core/loader/ImageLoader.cpp
index c89b49fc21096ea00e9107972d5d4a97d6f7eba7..e69c552a685d29d4ab524ca38dc8042a1eba70c8 100644
--- a/Source/core/loader/ImageLoader.cpp
+++ b/Source/core/loader/ImageLoader.cpp
@@ -364,7 +364,7 @@ bool ImageLoader::shouldLoadImmediately(const KURL& url, LoadType loadType) cons
|| isHTMLObjectElement(m_element)
|| isHTMLEmbedElement(m_element)
|| url.protocolIsData()
- || memoryCache()->resourceForURL(url)
+ || memoryCache()->resourceForURL(m_element->document().fetcher()->createCacheIdentifier(), url)
|| loadType == ForceLoadImmediately);
}

Powered by Google App Engine
This is Rietveld 408576698