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

Unified Diff: Source/core/paint/PartPainter.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/PartPainter.h
diff --git a/Source/core/paint/PartPainter.h b/Source/core/paint/PartPainter.h
index c1276c20ae330c64b111acc8783bd2cf43316a21..12f0699b494e02bedcfccd82a7562b932c00a203 100644
--- a/Source/core/paint/PartPainter.h
+++ b/Source/core/paint/PartPainter.h
@@ -5,6 +5,8 @@
#ifndef PartPainter_h
#define PartPainter_h
+#include "wtf/Allocator.h"
+
namespace blink {
struct PaintInfo;
@@ -12,6 +14,7 @@ class LayoutPoint;
class LayoutPart;
class PartPainter {
+ STACK_ALLOCATED();
public:
PartPainter(LayoutPart& layoutPart) : m_layoutPart(layoutPart) { }

Powered by Google App Engine
This is Rietveld 408576698