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

Unified Diff: Source/WebCore/loader/cache/CachedImage.cpp

Issue 14188008: Move Data uri handling into WebCore Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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
« no previous file with comments | « Source/WebCore/loader/ResourceLoader.cpp ('k') | Source/WebCore/platform/network/ResourceHandle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/loader/cache/CachedImage.cpp
diff --git a/Source/WebCore/loader/cache/CachedImage.cpp b/Source/WebCore/loader/cache/CachedImage.cpp
index f5822d88cc434ffcea9f66c662fa4829e974a2cb..ef4210abacb80f506bbadfecbb7e7db25f2ff1fd 100644
--- a/Source/WebCore/loader/cache/CachedImage.cpp
+++ b/Source/WebCore/loader/cache/CachedImage.cpp
@@ -79,7 +79,7 @@ CachedImage::~CachedImage()
void CachedImage::load(CachedResourceLoader* cachedResourceLoader, const ResourceLoaderOptions& options)
{
- if (!cachedResourceLoader || cachedResourceLoader->autoLoadImages())
+ if (!cachedResourceLoader || cachedResourceLoader->autoLoadImages() || m_resourceRequest.url().protocolIsData())
CachedResource::load(cachedResourceLoader, options);
else
setLoading(false);
« no previous file with comments | « Source/WebCore/loader/ResourceLoader.cpp ('k') | Source/WebCore/platform/network/ResourceHandle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698