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

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

Issue 2486073004: [ImageResource 1a] Change StyleFetchedImage 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 | « no previous file | third_party/WebKit/Source/core/style/StyleFetchedImage.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/style/StyleFetchedImage.h
diff --git a/third_party/WebKit/Source/core/style/StyleFetchedImage.h b/third_party/WebKit/Source/core/style/StyleFetchedImage.h
index 70d9cd9e2616f5793ab01eaf173e507f2b6fcada..4a55c27e197e387f373c300ca92f93e5d2cea0df 100644
--- a/third_party/WebKit/Source/core/style/StyleFetchedImage.h
+++ b/third_party/WebKit/Source/core/style/StyleFetchedImage.h
@@ -24,6 +24,7 @@
#ifndef StyleFetchedImage_h
#define StyleFetchedImage_h
+#include "core/fetch/ImageResourceObserver.h"
#include "core/fetch/ResourceClient.h"
yhirano 2016/11/29 08:26:59 Not needed?
hiroshige 2016/11/29 09:18:01 Done.
#include "core/style/StyleImage.h"
#include "platform/weborigin/KURL.h"
@@ -33,9 +34,9 @@ namespace blink {
class Document;
class ImageResource;
-class StyleFetchedImage final : public StyleImage, private ResourceClient {
+class StyleFetchedImage final : public StyleImage,
+ public ImageResourceObserver {
USING_PRE_FINALIZER(StyleFetchedImage, dispose);
- USING_GARBAGE_COLLECTED_MIXIN(StyleFetchedImage);
public:
static StyleFetchedImage* create(ImageResource* image,
@@ -60,7 +61,7 @@ class StyleFetchedImage final : public StyleImage, private ResourceClient {
bool usesImageContainerSize() const override;
void addClient(LayoutObject*) override;
void removeClient(LayoutObject*) override;
- void notifyFinished(Resource*) override;
+ void imageNotifyFinished(ImageResource*) override;
String debugName() const override { return "StyleFetchedImage"; }
PassRefPtr<Image> image(const LayoutObject&,
const IntSize&,
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/StyleFetchedImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698