Chromium Code Reviews

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

Issue 1706083002: Split ImageResourceClient into ResourceClient and ImageResourceObserver [1/2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit refine. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: third_party/WebKit/Source/core/style/StyleFetchedImage.cpp
diff --git a/third_party/WebKit/Source/core/style/StyleFetchedImage.cpp b/third_party/WebKit/Source/core/style/StyleFetchedImage.cpp
index f2e15b31e4c114262515a4a8c346468200ea4352..08c6706be29571665a37a47f68329f199ab4cf68 100644
--- a/third_party/WebKit/Source/core/style/StyleFetchedImage.cpp
+++ b/third_party/WebKit/Source/core/style/StyleFetchedImage.cpp
@@ -113,12 +113,12 @@ bool StyleFetchedImage::usesImageContainerSize() const
void StyleFetchedImage::addClient(LayoutObject* layoutObject)
{
- m_image->addClient(layoutObject);
+ m_image->addObserver(layoutObject);
}
void StyleFetchedImage::removeClient(LayoutObject* layoutObject)
{
- m_image->removeClient(layoutObject);
+ m_image->removeObserver(layoutObject);
}
void StyleFetchedImage::notifyFinished(Resource* resource)

Powered by Google App Engine