Index: Source/WebCore/rendering/style/StyleCachedImage.cpp |
=================================================================== |
--- Source/WebCore/rendering/style/StyleCachedImage.cpp (revision 108251) |
+++ Source/WebCore/rendering/style/StyleCachedImage.cpp (working copy) |
@@ -24,11 +24,22 @@ |
#include "config.h" |
#include "StyleCachedImage.h" |
-#include "CachedImage.h" |
#include "RenderObject.h" |
namespace WebCore { |
+StyleCachedImage::StyleCachedImage(CachedImage* image) |
+ : m_image(image) |
+{ |
+ m_isCachedImage = true; |
+ m_image->addClient(this); |
+} |
+ |
+StyleCachedImage::~StyleCachedImage() |
+{ |
+ m_image->removeClient(this); |
+} |
+ |
PassRefPtr<CSSValue> StyleCachedImage::cssValue() const |
{ |
return CSSPrimitiveValue::create(m_image->url(), CSSPrimitiveValue::CSS_URI); |