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

Unified Diff: Source/core/layout/svg/SVGTextLayoutAttributes.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/SVGTextFragment.h ('k') | Source/core/layout/svg/SVGTextLayoutAttributesBuilder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/SVGTextLayoutAttributes.h
diff --git a/Source/core/layout/svg/SVGTextLayoutAttributes.h b/Source/core/layout/svg/SVGTextLayoutAttributes.h
index 0423b736812a119545a13ec7b1824b3033b83932..7ec7c995655e2f4a382548d3fe78f9f8da269e5f 100644
--- a/Source/core/layout/svg/SVGTextLayoutAttributes.h
+++ b/Source/core/layout/svg/SVGTextLayoutAttributes.h
@@ -21,6 +21,7 @@
#define SVGTextLayoutAttributes_h
#include "core/layout/svg/SVGTextMetrics.h"
+#include "wtf/Allocator.h"
#include "wtf/HashMap.h"
#include "wtf/MathExtras.h"
#include "wtf/Noncopyable.h"
@@ -31,6 +32,7 @@ namespace blink {
class LayoutSVGInlineText;
struct SVGCharacterData {
+ ALLOW_ONLY_INLINE_ALLOCATION();
SVGCharacterData();
float x;
@@ -43,6 +45,7 @@ struct SVGCharacterData {
typedef HashMap<unsigned, SVGCharacterData> SVGCharacterDataMap;
class SVGTextLayoutAttributes {
+ DISALLOW_ALLOCATION();
WTF_MAKE_NONCOPYABLE(SVGTextLayoutAttributes);
public:
SVGTextLayoutAttributes(LayoutSVGInlineText*);
« no previous file with comments | « Source/core/layout/svg/SVGTextFragment.h ('k') | Source/core/layout/svg/SVGTextLayoutAttributesBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698