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

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

Issue 2521823003: [ImageResource 1c] Change StyleFetchedImageSet from ResourceClient to ImageResourceObserver (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 663ce8d15eb566165a70fd48a0dc55d4218ca14d..27ffd46cbaa635cdf15123d8a71ac0378d3c5d66 100644
--- a/third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp
+++ b/third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp
@@ -41,14 +41,14 @@ StyleFetchedImageSet::StyleFetchedImageSet(ImageResource* image,
m_imageSetValue(value),
m_url(url) {
m_isImageResourceSet = true;
- m_bestFitImage->addClient(this);
+ m_bestFitImage->addObserver(this);
ThreadState::current()->registerPreFinalizer(this);
}
StyleFetchedImageSet::~StyleFetchedImageSet() {}
void StyleFetchedImageSet::dispose() {
- m_bestFitImage->removeClient(this);
+ m_bestFitImage->removeObserver(this);
m_bestFitImage = nullptr;
}
@@ -139,7 +139,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