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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.cpp

Issue 1667843003: Make Resource RefCountedWillBeGarbageCollectedFinalized, attempt #2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + address review comments Created 4 years, 10 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/layout/LayoutImageResourceStyleImage.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.cpp b/third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.cpp
index 36add16256d5b4e112fc3fb49da733da1c05761e..be7e3e0f30a3bff6336e4ef504f3612bb40c0212 100644
--- a/third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.cpp
@@ -41,6 +41,7 @@ LayoutImageResourceStyleImage::LayoutImageResourceStyleImage(StyleImage* styleIm
LayoutImageResourceStyleImage::~LayoutImageResourceStyleImage()
{
+ ASSERT(!m_cachedImage);
}
void LayoutImageResourceStyleImage::initialize(LayoutObject* layoutObject)
@@ -57,7 +58,7 @@ void LayoutImageResourceStyleImage::shutdown()
{
ASSERT(m_layoutObject);
m_styleImage->removeClient(m_layoutObject);
- m_cachedImage = 0;
+ m_cachedImage = nullptr;
}
PassRefPtr<Image> LayoutImageResourceStyleImage::image(const IntSize& size, float zoom) const
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutImageResource.h ('k') | third_party/WebKit/Source/core/loader/DocumentLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698