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

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

Issue 12319101: Merge 142765 (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/loader/cache/CachedImage.cpp ('k') | Source/WebCore/svg/graphics/SVGImage.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/svg/graphics/SVGImage.h
===================================================================
--- Source/WebCore/svg/graphics/SVGImage.h (revision 143954)
+++ Source/WebCore/svg/graphics/SVGImage.h (working copy)
@@ -38,6 +38,7 @@
class Page;
class RenderBox;
class SVGImageChromeClient;
+class SVGImageForContainer;
class SVGImage : public Image {
public:
@@ -46,12 +47,6 @@
return adoptRef(new SVGImage(observer));
}
- enum ShouldClearBuffer {
- ClearImageBuffer,
- DontClearImageBuffer
- };
-
- void drawSVGToImageBuffer(ImageBuffer*, const FloatSize&, float, ShouldClearBuffer);
RenderBox* embeddedContentBox() const;
FrameView* frameView() const;
@@ -61,10 +56,16 @@
virtual bool hasRelativeWidth() const;
virtual bool hasRelativeHeight() const;
+ virtual void startAnimation(bool /*catchUpIfNecessary*/ = true) OVERRIDE;
+ virtual void stopAnimation() OVERRIDE;
+ virtual void resetAnimation() OVERRIDE;
+
virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE;
private:
friend class SVGImageChromeClient;
+ friend class SVGImageForContainer;
+
virtual ~SVGImage();
virtual String filenameExtension() const;
@@ -87,12 +88,12 @@
SVGImage(ImageObserver*);
virtual void draw(GraphicsContext*, const FloatRect& fromRect, const FloatRect& toRect, ColorSpace styleColorSpace, CompositeOperator, BlendMode);
+ void drawForContainer(GraphicsContext*, const FloatSize, float, const FloatRect&, const FloatRect&, ColorSpace, CompositeOperator, BlendMode);
+ void drawPatternForContainer(GraphicsContext*, const FloatSize, float, float, const FloatRect&, const AffineTransform&,
+ const FloatPoint&, ColorSpace, CompositeOperator, const FloatRect&);
- virtual NativeImagePtr nativeImageForCurrentFrame();
-
OwnPtr<SVGImageChromeClient> m_chromeClient;
OwnPtr<Page> m_page;
- RefPtr<Image> m_frameCache;
};
}
« no previous file with comments | « Source/WebCore/loader/cache/CachedImage.cpp ('k') | Source/WebCore/svg/graphics/SVGImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698