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

Unified Diff: Source/core/layout/svg/SVGTextChunkBuilder.h

Issue 1318713003: Make classes and structures in core/layout 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
« no previous file with comments | « Source/core/layout/svg/SVGSubpathData.h ('k') | Source/core/layout/svg/SVGTextFragment.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/SVGTextChunkBuilder.h
diff --git a/Source/core/layout/svg/SVGTextChunkBuilder.h b/Source/core/layout/svg/SVGTextChunkBuilder.h
index e8884e895da8a0e44f66ddce8e3b0806cf03f27c..46381eb23d2f7991dd079abbd72045b069ef17fd 100644
--- a/Source/core/layout/svg/SVGTextChunkBuilder.h
+++ b/Source/core/layout/svg/SVGTextChunkBuilder.h
@@ -20,6 +20,7 @@
#ifndef SVGTextChunkBuilder_h
#define SVGTextChunkBuilder_h
+#include "wtf/Allocator.h"
#include "wtf/Vector.h"
namespace blink {
@@ -35,6 +36,7 @@ struct SVGTextFragment;
// Phase three performs all modifications that have to be applied to each individual text chunk (text-anchor & textLength).
class SVGTextChunkBuilder {
+ STACK_ALLOCATED();
WTF_MAKE_NONCOPYABLE(SVGTextChunkBuilder);
public:
SVGTextChunkBuilder();
@@ -53,6 +55,7 @@ private:
};
class SVGTextPathChunkBuilder final : public SVGTextChunkBuilder {
+ STACK_ALLOCATED();
WTF_MAKE_NONCOPYABLE(SVGTextPathChunkBuilder);
public:
SVGTextPathChunkBuilder();
« no previous file with comments | « Source/core/layout/svg/SVGSubpathData.h ('k') | Source/core/layout/svg/SVGTextFragment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698