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

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

Issue 1843533005: Call imageNotifyFinished() just before ResourceClient::notifyFinished() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase, Reflect yhirano's comment 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
« no previous file with comments | « third_party/WebKit/Source/core/fetch/Resource.h ('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/Resource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/Resource.cpp b/third_party/WebKit/Source/core/fetch/Resource.cpp
index ed78f219c6ce391df41adc1752f443337a7eb96e..4300b39c80011978a36a468e074131370e807c07 100644
--- a/third_party/WebKit/Source/core/fetch/Resource.cpp
+++ b/third_party/WebKit/Source/core/fetch/Resource.cpp
@@ -334,7 +334,7 @@ void Resource::setDataBufferingPolicy(DataBufferingPolicy dataBufferingPolicy)
setEncodedSize(0);
}
-void Resource::markClientsFinished()
+void Resource::markClientsAndObserversFinished()
{
while (!m_clients.isEmpty()) {
HashCountedSet<ResourceClient*>::iterator it = m_clients.begin();
@@ -357,7 +357,7 @@ void Resource::error(Resource::Status status)
ASSERT(errorOccurred());
m_data.clear();
checkNotify();
- markClientsFinished();
+ markClientsAndObserversFinished();
}
void Resource::finish()
@@ -366,7 +366,7 @@ void Resource::finish()
if (!errorOccurred())
m_status = Cached;
checkNotify();
- markClientsFinished();
+ markClientsAndObserversFinished();
}
AtomicString Resource::httpContentType() const
« no previous file with comments | « third_party/WebKit/Source/core/fetch/Resource.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698