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

Unified Diff: Source/core/paint/InlineFlowBoxPainter.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/InlineFlowBoxPainter.h
diff --git a/Source/core/paint/InlineFlowBoxPainter.h b/Source/core/paint/InlineFlowBoxPainter.h
index ae04f6531a956cb790443fd8ca4f54fd3948248b..f5d7311ee9c73a29dbebc110c39c6f2c7b3403f3 100644
--- a/Source/core/paint/InlineFlowBoxPainter.h
+++ b/Source/core/paint/InlineFlowBoxPainter.h
@@ -8,6 +8,7 @@
#include "core/style/ShadowData.h"
#include "platform/graphics/GraphicsTypes.h"
#include "platform/text/TextDirection.h"
+#include "wtf/Allocator.h"
namespace blink {
@@ -22,6 +23,7 @@ struct PaintInfo;
class ComputedStyle;
class InlineFlowBoxPainter {
+ STACK_ALLOCATED();
public:
InlineFlowBoxPainter(InlineFlowBox& inlineFlowBox) : m_inlineFlowBox(inlineFlowBox) { }
void paint(const PaintInfo&, const LayoutPoint& paintOffset, const LayoutUnit lineTop, const LayoutUnit lineBottom);

Powered by Google App Engine
This is Rietveld 408576698