Remove some unneeded code noticed while looking at StylePendingImage
[WebKit-https.git] / Source / WebCore / rendering / RenderImageResource.cpp
index f459bead9ba576cda4f26f9649c4dc5d3058d31d..e6a1dc4592690dac337497e51c82b7e76077eed5 100644 (file)
@@ -91,7 +91,7 @@ void RenderImageResource::resetAnimation()
 
 PassRefPtr<Image> RenderImageResource::image(int, int) const
 {
-    return m_cachedImage ? m_cachedImage->imageForRenderer(m_renderer) : nullImage();
+    return m_cachedImage ? m_cachedImage->imageForRenderer(m_renderer) : Image::nullImage();
 }
 
 bool RenderImageResource::errorOccurred() const
@@ -106,16 +106,6 @@ void RenderImageResource::setContainerSizeForRenderer(const IntSize& imageContai
         m_cachedImage->setContainerSizeForRenderer(m_renderer, imageContainerSize, m_renderer->style().effectiveZoom());
 }
 
-Image* RenderImageResource::nullImage()
-{
-    return Image::nullImage();
-}
-
-bool RenderImageResource::usesImageContainerSize() const
-{
-    return m_cachedImage ? m_cachedImage->usesImageContainerSize() : false;
-}
-
 bool RenderImageResource::imageHasRelativeWidth() const
 {
     return m_cachedImage ? m_cachedImage->imageHasRelativeWidth() : false;