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

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

Issue 666403002: Decouple content transform fiddling from SVGRenderingContext::renderSubtree (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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
Index: Source/core/rendering/svg/SVGRenderingContext.h
diff --git a/Source/core/rendering/svg/SVGRenderingContext.h b/Source/core/rendering/svg/SVGRenderingContext.h
index 9e9cb82c530401d1ec2bc9ae76fdf5caac168c4b..714bff3f3896ab9a857b4e5985c00d0ddd85dfa6 100644
--- a/Source/core/rendering/svg/SVGRenderingContext.h
+++ b/Source/core/rendering/svg/SVGRenderingContext.h
@@ -28,15 +28,24 @@
#include "core/rendering/PaintInfo.h"
#include "core/rendering/svg/RenderSVGResourceClipper.h"
#include "platform/graphics/ImageBuffer.h"
+#include "platform/transforms/AffineTransform.h"
namespace blink {
-class AffineTransform;
class RenderObject;
class FloatRect;
class RenderSVGResourceFilter;
class RenderSVGResourceMasker;
+class SubtreeContentTransformScope {
+public:
+ SubtreeContentTransformScope(const AffineTransform&);
+ ~SubtreeContentTransformScope();
+
+private:
+ AffineTransform m_savedContentTransformation;
+};
+
// SVGRenderingContext
class SVGRenderingContext {
public:
@@ -73,7 +82,7 @@ public:
void prepareToRenderSVGContent(RenderObject*, PaintInfo&);
bool isRenderingPrepared() const { return m_renderingFlags & RenderingPrepared; }
- static void renderSubtree(GraphicsContext*, RenderObject*, const AffineTransform&);
+ static void renderSubtree(GraphicsContext*, RenderObject*);
static float calculateScreenFontSizeScalingFactor(const RenderObject*);
static void calculateDeviceSpaceTransformation(const RenderObject*, AffineTransform& absoluteTransform);
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResourcePattern.cpp ('k') | Source/core/rendering/svg/SVGRenderingContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698