Remove Image::decodedSize()

https://bugs.webkit.org/show_bug.cgi?id=125327

Reviewed by Sam Weinig.

No new tests, just removing dead code.

* platform/graphics/BitmapImage.cpp:
(WebCore::BitmapImage::resetAnimation):
* platform/graphics/BitmapImage.h:
* platform/graphics/GeneratedImage.h:
* platform/graphics/Image.h:
* platform/graphics/cg/PDFDocumentImage.cpp:
* platform/graphics/cg/PDFDocumentImage.h:
* svg/graphics/SVGImage.h:
* svg/graphics/SVGImageForContainer.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160207 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent d9d61709
2013-12-05 Tim Horton <timothy_horton@apple.com>
Remove Image::decodedSize()
https://bugs.webkit.org/show_bug.cgi?id=125327
Reviewed by Sam Weinig.
No new tests, just removing dead code.
* platform/graphics/BitmapImage.cpp:
(WebCore::BitmapImage::resetAnimation):
* platform/graphics/BitmapImage.h:
* platform/graphics/GeneratedImage.h:
* platform/graphics/Image.h:
* platform/graphics/cg/PDFDocumentImage.cpp:
* platform/graphics/cg/PDFDocumentImage.h:
* svg/graphics/SVGImage.h:
* svg/graphics/SVGImageForContainer.h:
2013-12-05 Commit Queue <commit-queue@webkit.org>
Unreviewed, rolling out r160133.
......@@ -499,11 +499,6 @@ void BitmapImage::resetAnimation()
destroyDecodedDataIfNecessary(true);
}
unsigned BitmapImage::decodedSize() const
{
return m_decodedSize;
}
void BitmapImage::drawPattern(GraphicsContext* ctxt, const FloatRect& tileRect, const AffineTransform& transform,
const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator op, const FloatRect& destRect, BlendMode blendMode)
{
......
......@@ -134,8 +134,6 @@ public:
virtual void stopAnimation() OVERRIDE;
virtual void resetAnimation() OVERRIDE;
virtual unsigned decodedSize() const OVERRIDE;
virtual void drawPattern(GraphicsContext*, const FloatRect& srcRect, const AffineTransform& patternTransform,
const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator, const FloatRect& destRect, BlendMode = BlendModeNormal) OVERRIDE;
......
......@@ -47,7 +47,6 @@ public:
// Assume that generated content has no decoded data we need to worry about
virtual void destroyDecodedData(bool /*destroyAll*/ = true) OVERRIDE { }
virtual unsigned decodedSize() const OVERRIDE { return 0; }
protected:
virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace styleColorSpace, CompositeOperator, BlendMode, ImageOrientationDescription) OVERRIDE = 0;
......
......@@ -124,7 +124,6 @@ public:
virtual String filenameExtension() const { return String(); } // null string if unknown
virtual void destroyDecodedData(bool destroyAll = true) = 0;
virtual unsigned decodedSize() const = 0;
SharedBuffer* data() { return m_encodedImageData.get(); }
......
......@@ -209,14 +209,6 @@ void PDFDocumentImage::destroyDecodedData(bool)
m_cachedBytes = 0;
}
unsigned PDFDocumentImage::decodedSize() const
{
// FIXME: PDFDocumentImage is underreporting decoded sizes because this
// only includes the cached image and nothing else.
return m_cachedBytes;
}
#if !USE(PDFKIT_FOR_PDFDOCUMENTIMAGE)
void PDFDocumentImage::createPDFDocument()
{
......
......@@ -65,7 +65,6 @@ private:
virtual bool dataChanged(bool allDataReceived) OVERRIDE;
virtual void destroyDecodedData(bool /*destroyAll*/ = true) OVERRIDE;
virtual unsigned decodedSize() const OVERRIDE;
virtual void computeIntrinsicDimensions(Length& intrinsicWidth, Length& intrinsicHeight, FloatSize& intrinsicRatio) OVERRIDE;
virtual IntSize size() const OVERRIDE;
......
......@@ -85,7 +85,6 @@ private:
// FIXME: SVGImages are underreporting decoded sizes and will be unable
// to prune because these functions are not implemented yet.
virtual void destroyDecodedData(bool) OVERRIDE { }
virtual unsigned decodedSize() const OVERRIDE { return 0; }
// FIXME: Implement this to be less conservative.
virtual bool currentFrameKnownToBeOpaque() OVERRIDE { return false; }
......
......@@ -73,7 +73,6 @@ private:
}
virtual void destroyDecodedData(bool /*destroyAll*/ = true) OVERRIDE { }
virtual unsigned decodedSize() const OVERRIDE { return 0; }
SVGImage* m_image;
const FloatSize m_containerSize;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment