Remove some unneeded code noticed while looking at StylePendingImage
[WebKit-https.git] / Source / WebCore / rendering / RenderImageResource.h
index 5339b32b9995a2233f73f51371db1c6f0743f5ff..b7630b4dbbfa51d61bed84b68e9474bfdcbe6ea4 100644 (file)
 #define RenderImageResource_h
 
 #include "CachedResourceHandle.h"
 #define RenderImageResource_h
 
 #include "CachedResourceHandle.h"
-#include "Image.h"
-#include "LayoutSize.h"
 #include "StyleImage.h"
 #include "StyleImage.h"
+#include <wtf/PassOwnPtr.h>
 
 namespace WebCore {
 
 
 namespace WebCore {
 
+class CachedImage;
 class RenderElement;
 
 class RenderImageResource {
 class RenderElement;
 
 class RenderImageResource {
@@ -58,7 +58,6 @@ public:
     virtual bool errorOccurred() const;
 
     virtual void setContainerSizeForRenderer(const IntSize&);
     virtual bool errorOccurred() const;
 
     virtual void setContainerSizeForRenderer(const IntSize&);
-    virtual bool usesImageContainerSize() const;
     virtual bool imageHasRelativeWidth() const;
     virtual bool imageHasRelativeHeight() const;
 
     virtual bool imageHasRelativeWidth() const;
     virtual bool imageHasRelativeHeight() const;
 
@@ -69,11 +68,9 @@ public:
 
 protected:
     RenderImageResource();
 
 protected:
     RenderImageResource();
+
     RenderElement* m_renderer;
     CachedResourceHandle<CachedImage> m_cachedImage;
     RenderElement* m_renderer;
     CachedResourceHandle<CachedImage> m_cachedImage;
-
-private:
-    static Image* nullImage();
 };
 
 } // namespace WebCore
 };
 
 } // namespace WebCore