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

Unified Diff: Source/core/paint/SVGTextPainter.h

Issue 1319893002: Make classes and structures in core/paint fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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/paint/SVGTextPainter.h
diff --git a/Source/core/paint/SVGTextPainter.h b/Source/core/paint/SVGTextPainter.h
index 43f86ed2394dd39eeaa968307de34777617cf4ac..74ee064d1ba23ebef317da6f72b4184ea7cc17cf 100644
--- a/Source/core/paint/SVGTextPainter.h
+++ b/Source/core/paint/SVGTextPainter.h
@@ -5,12 +5,15 @@
#ifndef SVGTextPainter_h
#define SVGTextPainter_h
+#include "wtf/Allocator.h"
+
namespace blink {
struct PaintInfo;
class LayoutSVGText;
class SVGTextPainter {
+ STACK_ALLOCATED();
public:
SVGTextPainter(LayoutSVGText& layoutSVGText) : m_layoutSVGText(layoutSVGText) { }
void paint(const PaintInfo&);

Powered by Google App Engine
This is Rietveld 408576698