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

Unified Diff: third_party/WebKit/Source/core/fetch/ImageResource.cpp

Issue 1829403002: Clean up font loading (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Resource_status
Patch Set: Another rebase! Created 4 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
Index: third_party/WebKit/Source/core/fetch/ImageResource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/ImageResource.cpp b/third_party/WebKit/Source/core/fetch/ImageResource.cpp
index 52c5fb9e69ece10954040caaf8ae962bd2eaff84..e8462ed803e19d9d404dc00a3218161ea093dc92 100644
--- a/third_party/WebKit/Source/core/fetch/ImageResource.cpp
+++ b/third_party/WebKit/Source/core/fetch/ImageResource.cpp
@@ -78,14 +78,6 @@ ImageResource::ImageResource(blink::Image* image, const ResourceLoaderOptions& o
setStatus(Cached);
}
-ImageResource::ImageResource(const ResourceRequest& resourceRequest, blink::Image* image, const ResourceLoaderOptions& options)
- : Resource(resourceRequest, Image, options)
- , m_image(image)
-{
- WTF_LOG(Timers, "new ImageResource(ResourceRequest, Image) %p", this);
- setStatus(Cached);
-}
-
ImageResource::~ImageResource()
{
WTF_LOG(Timers, "~ImageResource %p", this);
@@ -510,6 +502,7 @@ void ImageResource::reloadIfLoFi(ResourceFetcher* fetcher)
m_resourceRequest.setCachePolicy(WebCachePolicy::BypassingCache);
m_resourceRequest.setLoFiState(WebURLRequest::LoFiOff);
error(Resource::LoadError);
+ setStatus(NotStarted);
load(fetcher);
}
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ImageResource.h ('k') | third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698