Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Unified Diff: Source/WebCore/svg/graphics/SVGImageForContainer.h

Issue 12314169: Merge 143541 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/svg/graphics/SVGImageCache.cpp ('k') | Source/WebCore/svg/graphics/SVGImageForContainer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/svg/graphics/SVGImageForContainer.h
===================================================================
--- Source/WebCore/svg/graphics/SVGImageForContainer.h (revision 144238)
+++ Source/WebCore/svg/graphics/SVGImageForContainer.h (working copy)
@@ -38,9 +38,9 @@
class SVGImageForContainer : public Image {
public:
- static PassRefPtr<SVGImageForContainer> create(SVGImage* image, const FloatSize& containerSize, float pageScale, float zoom)
+ static PassRefPtr<SVGImageForContainer> create(SVGImage* image, const FloatSize& containerSize, float zoom)
{
- return adoptRef(new SVGImageForContainer(image, containerSize, pageScale, zoom));
+ return adoptRef(new SVGImageForContainer(image, containerSize, zoom));
}
virtual bool isSVGImage() const OVERRIDE { return true; }
@@ -62,25 +62,20 @@
// FIXME: Implement this to be less conservative.
virtual bool currentFrameKnownToBeOpaque() OVERRIDE { return false; }
- FloatSize containerSize() { return m_containerSize; }
- float pageScale() { return m_pageScale; }
- float zoom() { return m_zoom; }
-
- void setSize(FloatSize& size) { m_containerSize = size; }
- void setZoom(float zoom) { m_zoom = zoom; }
- void setPageScale(float pageScale) { m_pageScale = pageScale; }
-
private:
- SVGImageForContainer(SVGImage* image, const FloatSize& containerSize, float pageScale, float zoom)
- : m_image(image), m_containerSize(containerSize), m_pageScale(pageScale), m_zoom(zoom) { }
+ SVGImageForContainer(SVGImage* image, const FloatSize& containerSize, float zoom)
+ : m_image(image)
+ , m_containerSize(containerSize)
+ , m_zoom(zoom)
+ {
+ }
virtual void destroyDecodedData(bool /*destroyAll*/ = true) { }
virtual unsigned decodedSize() const { return 0; }
SVGImage* m_image;
- FloatSize m_containerSize;
- float m_pageScale;
- float m_zoom;
+ const FloatSize m_containerSize;
+ const float m_zoom;
};
}
« no previous file with comments | « Source/WebCore/svg/graphics/SVGImageCache.cpp ('k') | Source/WebCore/svg/graphics/SVGImageForContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698