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

Unified Diff: Source/core/paint/BoxPainter.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/BoxPainter.h
diff --git a/Source/core/paint/BoxPainter.h b/Source/core/paint/BoxPainter.h
index c8c46873e47ffad6dc121640f4f25d8ffcb2de3e..a720bc2927eb7c65b894eaa01e7eb08a6140b518 100644
--- a/Source/core/paint/BoxPainter.h
+++ b/Source/core/paint/BoxPainter.h
@@ -7,6 +7,7 @@
#include "core/layout/LayoutBoxModelObject.h"
#include "core/paint/ObjectPainter.h"
+#include "wtf/Allocator.h"
namespace blink {
@@ -18,6 +19,7 @@ class LayoutBox;
class LayoutObject;
class BoxPainter {
+ STACK_ALLOCATED();
public:
BoxPainter(LayoutBox& layoutBox) : m_layoutBox(layoutBox) { }
void paint(const PaintInfo&, const LayoutPoint&);

Powered by Google App Engine
This is Rietveld 408576698