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

Unified Diff: Source/core/paint/ObjectPainter.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/ObjectPainter.h
diff --git a/Source/core/paint/ObjectPainter.h b/Source/core/paint/ObjectPainter.h
index 555e3161f2ac7e0cac960b9949b1669a5f605636..3944c3eb4f2b07f71b8352a88da061240c9b454f 100644
--- a/Source/core/paint/ObjectPainter.h
+++ b/Source/core/paint/ObjectPainter.h
@@ -6,6 +6,7 @@
#define ObjectPainter_h
#include "core/style/ComputedStyleConstants.h"
+#include "wtf/Allocator.h"
#include "wtf/Vector.h"
namespace blink {
@@ -19,6 +20,7 @@ class LayoutObject;
class ComputedStyle;
class ObjectPainter {
+ STACK_ALLOCATED();
public:
ObjectPainter(LayoutObject& layoutObject) : m_layoutObject(layoutObject) { }

Powered by Google App Engine
This is Rietveld 408576698