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

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..63ca01e09e3aef1a20827776649f5ea25823ec5f 100644
--- a/third_party/WebKit/Source/core/style/StyleFetchedImage.h
+++ b/third_party/WebKit/Source/core/style/StyleFetchedImage.h
@@ -24,7 +24,7 @@
#ifndef StyleFetchedImage_h
#define StyleFetchedImage_h
-#include "core/fetch/ResourceClient.h"
+#include "core/fetch/ImageResourceObserver.h"
#include "core/style/StyleImage.h"
#include "platform/weborigin/KURL.h"
@@ -33,9 +33,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 +60,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