summaryrefslogtreecommitdiffstats
path: root/WebCore/css/CSSImageValue.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/css/CSSImageValue.h')
-rw-r--r--WebCore/css/CSSImageValue.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/WebCore/css/CSSImageValue.h b/WebCore/css/CSSImageValue.h
index a1715cd..4205c4f 100644
--- a/WebCore/css/CSSImageValue.h
+++ b/WebCore/css/CSSImageValue.h
@@ -29,6 +29,7 @@ namespace WebCore {
class DocLoader;
class StyleCachedImage;
+class StyleImage;
class CSSImageValue : public CSSPrimitiveValue, private CachedResourceClient {
public:
@@ -37,6 +38,8 @@ public:
virtual ~CSSImageValue();
virtual StyleCachedImage* cachedImage(DocLoader*);
+ // Returns a StyleCachedImage if the image is cached already, otherwise a StylePendingImage.
+ StyleImage* cachedOrPendingImage();
virtual bool isImageValue() const { return true; }
@@ -50,7 +53,7 @@ protected:
private:
CSSImageValue();
- RefPtr<StyleCachedImage> m_image;
+ RefPtr<StyleImage> m_image;
bool m_accessedImage;
};