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

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

Issue 1965323002: Do the things in ImageResource::allClientsAndObserversRemoved() asynchronously Base URL: https://chromium.googlesource.com/chromium/src.git@Loader_asyncCancelInAllClientsAndObRemoved_hoge
Patch Set: Rebase. Created 4 years, 7 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 3aa08806351920f2d015c432164ba8c87a718188..408c7cbd61f791b2494724ea39ef8844a88877d9 100644
--- a/third_party/WebKit/Source/core/fetch/ImageResource.cpp
+++ b/third_party/WebKit/Source/core/fetch/ImageResource.cpp
@@ -206,13 +206,13 @@ void ImageResource::destroyDecodedDataIfPossible()
}
}
-void ImageResource::allClientsAndObserversRemoved()
+void ImageResource::cancelTimerFired(Timer<Resource>* timer)
{
if (m_image && !errorOccurred())
m_image->resetAnimation();
if (m_multipartParser)
m_multipartParser->cancel();
- Resource::allClientsAndObserversRemoved();
+ Resource::cancelTimerFired(timer);
}
void ImageResource::appendData(const char* data, size_t length)
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ImageResource.h ('k') | third_party/WebKit/Source/core/fetch/Resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698