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

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

Issue 1800333003: Keep multipart images in m_nonBlockingLoaders after first part loaded (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/fetch/ResourceLoader.cpp
diff --git a/third_party/WebKit/Source/core/fetch/ResourceLoader.cpp b/third_party/WebKit/Source/core/fetch/ResourceLoader.cpp
index 75dd0bfd3fa5562885c0503b3926b03b90a1870a..bdb1b876b504542381a366bfc165ac7468138cd6 100644
--- a/third_party/WebKit/Source/core/fetch/ResourceLoader.cpp
+++ b/third_party/WebKit/Source/core/fetch/ResourceLoader.cpp
@@ -132,11 +132,14 @@ void ResourceLoader::didFinishLoadingOnePart(double finishTime, int64_t encodedD
if (!isFinishing()) {
yhirano 2016/03/16 02:17:33 [optional] It might be good to reorder clauses: I'
hiroshige 2016/03/16 21:18:43 Done.
// When loading a multipart resource, make the loader non-block when
// finishing loading the first part.
- m_fetcher->subresourceLoaderFinishedLoadingOnePart(this);
- }
+ m_fetcher->moveResourceLoaderToNonBlocking(this);
- if (m_state == ConnectionStateReleased)
- return;
+ m_fetcher->didLoadResource(m_resource.get());
+ if (m_state == ConnectionStateReleased)
+ return;
+ } else {
+ m_fetcher->removeResourceLoader(this);
+ }
if (m_notifiedLoadComplete)
return;
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698