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

Unified Diff: Source/core/paint/EmbeddedObjectPainter.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/EmbeddedObjectPainter.h
diff --git a/Source/core/paint/EmbeddedObjectPainter.h b/Source/core/paint/EmbeddedObjectPainter.h
index 7bb7094f56a0c53d1974ad92a826e7b802f4e041..b8b45357de245153ae4d9a25593321114cc14172 100644
--- a/Source/core/paint/EmbeddedObjectPainter.h
+++ b/Source/core/paint/EmbeddedObjectPainter.h
@@ -5,6 +5,8 @@
#ifndef EmbeddedObjectPainter_h
#define EmbeddedObjectPainter_h
+#include "wtf/Allocator.h"
+
namespace blink {
struct PaintInfo;
@@ -16,6 +18,7 @@ class Path;
class TextRun;
class EmbeddedObjectPainter {
+ STACK_ALLOCATED();
public:
EmbeddedObjectPainter(LayoutEmbeddedObject& layoutEmbeddedObject) : m_layoutEmbeddedObject(layoutEmbeddedObject) { }

Powered by Google App Engine
This is Rietveld 408576698