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

Unified Diff: Source/core/rendering/svg/RenderSVGImage.h

Issue 603053002: Move RenderSVGImage's paint code to SVGImagePainter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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/core/paint/SVGImagePainter.cpp ('k') | Source/core/rendering/svg/RenderSVGImage.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/RenderSVGImage.h
diff --git a/Source/core/rendering/svg/RenderSVGImage.h b/Source/core/rendering/svg/RenderSVGImage.h
index 93e649fe71c45d7099b38c8d216d64d6634e88f0..d54fa22364b29267015c4d626a4181a96f6d1ba1 100644
--- a/Source/core/rendering/svg/RenderSVGImage.h
+++ b/Source/core/rendering/svg/RenderSVGImage.h
@@ -43,18 +43,17 @@ public:
RenderImageResource* imageResource() { return m_imageResource.get(); }
- // Note: Assumes the PaintInfo context has had all local transforms applied.
- void paintForeground(PaintInfo&);
+ virtual const AffineTransform& localToParentTransform() const OVERRIDE { return m_localTransform; }
+ OwnPtr<ImageBuffer>& bufferedForeground() { return m_bufferedForeground; }
f(malita) 2014/10/24 20:11:53 Belated comment: encapsulation-- :( Do we have a
+
+ virtual FloatRect paintInvalidationRectInLocalCoordinates() const OVERRIDE { return m_paintInvalidationBoundingBox; }
+ virtual FloatRect objectBoundingBox() const OVERRIDE { return m_objectBoundingBox; }
private:
virtual const char* renderName() const OVERRIDE { return "RenderSVGImage"; }
virtual bool isSVGImage() const OVERRIDE { return true; }
- virtual const AffineTransform& localToParentTransform() const OVERRIDE { return m_localTransform; }
-
- virtual FloatRect objectBoundingBox() const OVERRIDE { return m_objectBoundingBox; }
virtual FloatRect strokeBoundingBox() const OVERRIDE { return m_objectBoundingBox; }
- virtual FloatRect paintInvalidationRectInLocalCoordinates() const OVERRIDE { return m_paintInvalidationBoundingBox; }
virtual void addFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& additionalOffset, const RenderLayerModelObject* paintContainer) const OVERRIDE;
« no previous file with comments | « Source/core/paint/SVGImagePainter.cpp ('k') | Source/core/rendering/svg/RenderSVGImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698