diff options
Diffstat (limited to 'WebCore/rendering/style/StyleImage.h')
-rw-r--r-- | WebCore/rendering/style/StyleImage.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/WebCore/rendering/style/StyleImage.h b/WebCore/rendering/style/StyleImage.h index cb90288..ead8d4a 100644 --- a/WebCore/rendering/style/StyleImage.h +++ b/WebCore/rendering/style/StyleImage.h @@ -24,6 +24,7 @@ #ifndef StyleImage_h #define StyleImage_h +#include "CSSValue.h" #include "IntSize.h" #include <wtf/PassRefPtr.h> #include <wtf/RefCounted.h> @@ -41,12 +42,12 @@ class StyleImage : public RefCounted<StyleImage> { public: virtual ~StyleImage() { } - bool operator==(const StyleImage& other) + bool operator==(const StyleImage& other) const { return data() == other.data(); } - - virtual PassRefPtr<CSSValue> cssValue() = 0; + + virtual PassRefPtr<CSSValue> cssValue() const = 0; virtual bool canRender(float /*multiplier*/) const { return true; } virtual bool isLoaded() const { return true; } @@ -60,7 +61,9 @@ public: virtual void removeClient(RenderObject*) = 0; virtual Image* image(RenderObject*, const IntSize&) const = 0; virtual WrappedImagePtr data() const = 0; + virtual bool isCachedImage() const { return false; } + virtual bool isPendingImage() const { return false; } virtual bool isGeneratedImage() const { return false; } static bool imagesEquivalent(StyleImage* image1, StyleImage* image2) |