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

Unified Diff: third_party/WebKit/Source/core/style/StyleFetchedImageSet.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/StyleFetchedImageSet.h
diff --git a/third_party/WebKit/Source/core/style/StyleFetchedImageSet.h b/third_party/WebKit/Source/core/style/StyleFetchedImageSet.h
index 0ed7ee36a7bdd7b599b5b8ccc1d2ac463c70fb34..6d04c60383d9f345b315547821b3aa822d7237e6 100644
--- a/third_party/WebKit/Source/core/style/StyleFetchedImageSet.h
+++ b/third_party/WebKit/Source/core/style/StyleFetchedImageSet.h
@@ -33,7 +33,6 @@
namespace blink {
-class ImageResource;
class CSSImageSetValue;
// This class keeps one cached image and has access to a set of alternatives.
@@ -43,7 +42,7 @@ class StyleFetchedImageSet final : public StyleImage,
USING_PRE_FINALIZER(StyleFetchedImageSet, dispose);
public:
- static StyleFetchedImageSet* create(ImageResource* image,
+ static StyleFetchedImageSet* create(ImageResourceContent* image,
float imageScaleFactor,
CSSImageSetValue* value,
const KURL& url) {
@@ -74,12 +73,12 @@ class StyleFetchedImageSet final : public StyleImage,
float) const override;
float imageScaleFactor() const override { return m_imageScaleFactor; }
bool knownToBeOpaque(const LayoutObject&) const override;
- ImageResource* cachedImage() const override;
+ ImageResourceContent* cachedImage() const override;
DECLARE_VIRTUAL_TRACE();
private:
- StyleFetchedImageSet(ImageResource*,
+ StyleFetchedImageSet(ImageResourceContent*,
float imageScaleFactor,
CSSImageSetValue*,
const KURL&);
@@ -88,7 +87,7 @@ class StyleFetchedImageSet final : public StyleImage,
String debugName() const override { return "StyleFetchedImageSet"; }
- Member<ImageResource> m_bestFitImage;
+ Member<ImageResourceContent> m_bestFitImage;
float m_imageScaleFactor;
Member<CSSImageSetValue> m_imageSetValue; // Not retained; it owns us.

Powered by Google App Engine
This is Rietveld 408576698