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

Unified Diff: third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp

Issue 2486143002: Deprecated [ImageLoader 1c] Make StyleFetchedImageSet no longer ResourceClient (Closed)
Patch Set: Rebase Created 4 years, 1 month 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/style/StyleFetchedImageSet.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/style/StyleFetchedImageSet.cpp
diff --git a/third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp b/third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp
index 79554c8cfd8297c609e7ec5612813c9976106504..b45010ba04799acc5cec1706b23a4d64c4156efa 100644
--- a/third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp
+++ b/third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp
@@ -41,17 +41,10 @@ StyleFetchedImageSet::StyleFetchedImageSet(ImageResource* image,
m_imageSetValue(value),
m_url(url) {
m_isImageResourceSet = true;
- m_bestFitImage->addClient(this);
- ThreadState::current()->registerPreFinalizer(this);
}
StyleFetchedImageSet::~StyleFetchedImageSet() {}
-void StyleFetchedImageSet::dispose() {
- m_bestFitImage->removeClient(this);
- m_bestFitImage = nullptr;
-}
-
WrappedImagePtr StyleFetchedImageSet::data() const {
return cachedImage();
}
@@ -139,7 +132,6 @@ DEFINE_TRACE(StyleFetchedImageSet) {
visitor->trace(m_bestFitImage);
visitor->trace(m_imageSetValue);
StyleImage::trace(visitor);
- ResourceClient::trace(visitor);
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleFetchedImageSet.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698