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

Unified Diff: third_party/WebKit/Source/core/style/StyleFetchedImageSet.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/style/StyleFetchedImageSet.cpp
diff --git a/third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp b/third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp
index bab09b1cf7c5a4fd409f6fc7f555be655c01de80..c02f13b3d710961167cd7a00447ef2134391cca5 100644
--- a/third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp
+++ b/third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp
@@ -55,6 +55,7 @@ StyleFetchedImageSet::~StyleFetchedImageSet()
void StyleFetchedImageSet::dispose()
{
m_bestFitImage->removeClient(this);
+ m_bestFitImage = nullptr;
}
WrappedImagePtr StyleFetchedImageSet::data() const
@@ -140,6 +141,7 @@ bool StyleFetchedImageSet::knownToBeOpaque(const LayoutObject* layoutObject) con
DEFINE_TRACE(StyleFetchedImageSet)
{
+ visitor->trace(m_bestFitImage);
visitor->trace(m_imageSetValue);
StyleImage::trace(visitor);
}
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleFetchedImageSet.h ('k') | third_party/WebKit/Source/core/svg/SVGFEImageElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698