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

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

Issue 2304523003: Fix CHECK condition in ImageResource (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | 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/ImageResource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/ImageResource.cpp b/third_party/WebKit/Source/core/fetch/ImageResource.cpp
index f9b25215b01aee542b3ff782b100b12d8887fa10..41e87dfc8bc39fe9d4a6b2f2753c3bad8e7cb31d 100644
--- a/third_party/WebKit/Source/core/fetch/ImageResource.cpp
+++ b/third_party/WebKit/Source/core/fetch/ImageResource.cpp
@@ -218,7 +218,7 @@ void ImageResource::doResetAnimation()
void ImageResource::allClientsAndObserversRemoved()
{
if (m_image) {
- CHECK(!errorOccurred());
+ CHECK(m_image->isNull() || !errorOccurred());
// If possible, delay the resetting until back at the event loop.
// Doing so after a conservative GC prevents resetAnimation() from
// upsetting ongoing animation updates (crbug.com/613709)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698