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

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

Issue 2469873002: [ImageResource 4] Split ImageResource into Resource and Image parts (Closed)
Patch Set: style Created 4 years 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
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 63ca01e09e3aef1a20827776649f5ea25823ec5f..07bb8bbbb7bf2d8454fd0be6d6e3b32819845266 100644
--- a/third_party/WebKit/Source/core/style/StyleFetchedImage.h
+++ b/third_party/WebKit/Source/core/style/StyleFetchedImage.h
@@ -31,14 +31,13 @@
namespace blink {
class Document;
-class ImageResource;
class StyleFetchedImage final : public StyleImage,
public ImageResourceObserver {
USING_PRE_FINALIZER(StyleFetchedImage, dispose);
public:
- static StyleFetchedImage* create(ImageResource* image,
+ static StyleFetchedImage* create(ImageResourceContent* image,
const Document& document,
const KURL& url) {
return new StyleFetchedImage(image, document, url);
@@ -60,22 +59,22 @@ class StyleFetchedImage final : public StyleImage,
bool usesImageContainerSize() const override;
void addClient(LayoutObject*) override;
void removeClient(LayoutObject*) override;
- void imageNotifyFinished(ImageResource*) override;
+ void imageNotifyFinished(ImageResourceContent*) override;
String debugName() const override { return "StyleFetchedImage"; }
PassRefPtr<Image> image(const LayoutObject&,
const IntSize&,
float zoom) const override;
bool knownToBeOpaque(const LayoutObject&) const override;
- ImageResource* cachedImage() const override;
+ ImageResourceContent* cachedImage() const override;
DECLARE_VIRTUAL_TRACE();
private:
- StyleFetchedImage(ImageResource*, const Document&, const KURL&);
+ StyleFetchedImage(ImageResourceContent*, const Document&, const KURL&);
void dispose();
- Member<ImageResource> m_image;
+ Member<ImageResourceContent> m_image;
Member<const Document> m_document;
const KURL m_url;
};
« no previous file with comments | « third_party/WebKit/Source/core/style/ShapeValue.h ('k') | third_party/WebKit/Source/core/style/StyleFetchedImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698