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

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

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased upto r185213 Created 6 years, 1 month 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 915360b1a60c4cee691f766a1a128d3fe4ab2692..ec9256d2be4cefa7a735cc23926e04b3cff60f11 100644
--- a/Source/core/rendering/svg/SVGRenderingContext.h
+++ b/Source/core/rendering/svg/SVGRenderingContext.h
@@ -46,29 +46,30 @@ private:
// SVGRenderingContext
class SVGRenderingContext {
+ STACK_ALLOCATED();
public:
// Does not start rendering.
SVGRenderingContext()
: m_renderingFlags(0)
- , m_object(0)
- , m_paintInfo(0)
- , m_savedContext(0)
- , m_filter(0)
- , m_clipper(0)
+ , m_object(nullptr)
+ , m_paintInfo(nullptr)
+ , m_savedContext(nullptr)
+ , m_filter(nullptr)
+ , m_clipper(nullptr)
, m_clipperState(RenderSVGResourceClipper::ClipperNotApplied)
- , m_masker(0)
+ , m_masker(nullptr)
{
}
SVGRenderingContext(RenderObject* object, PaintInfo& paintinfo)
: m_renderingFlags(0)
- , m_object(0)
- , m_paintInfo(0)
- , m_savedContext(0)
- , m_filter(0)
- , m_clipper(0)
+ , m_object(nullptr)
+ , m_paintInfo(nullptr)
+ , m_savedContext(nullptr)
+ , m_filter(nullptr)
+ , m_clipper(nullptr)
, m_clipperState(RenderSVGResourceClipper::ClipperNotApplied)
- , m_masker(0)
+ , m_masker(nullptr)
{
prepareToRenderSVGContent(object, paintinfo);
}
@@ -98,14 +99,14 @@ private:
const static int ActionsNeeded = RestoreGraphicsContext | EndOpacityLayer | PostApplyResources;
int m_renderingFlags;
- RenderObject* m_object;
+ RawPtrWillBeMember<RenderObject> m_object;
PaintInfo* m_paintInfo;
GraphicsContext* m_savedContext;
IntRect m_savedPaintRect;
- RenderSVGResourceFilter* m_filter;
- RenderSVGResourceClipper* m_clipper;
+ RawPtrWillBeMember<RenderSVGResourceFilter> m_filter;
+ RawPtrWillBeMember<RenderSVGResourceClipper> m_clipper;
RenderSVGResourceClipper::ClipperState m_clipperState;
- RenderSVGResourceMasker* m_masker;
+ RawPtrWillBeMember<RenderSVGResourceMasker> m_masker;
};
} // namespace blink
« no previous file with comments | « Source/core/rendering/svg/SVGRenderTreeAsText.cpp ('k') | Source/core/rendering/svg/SVGTextLayoutAttributesBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698