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

Unified Diff: Source/core/paint/BoxClipper.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/BoxClipper.h
diff --git a/Source/core/paint/BoxClipper.h b/Source/core/paint/BoxClipper.h
index 59b6a6dd93c9b707cb91cba87286d2f21e596952..5f06af8db3f489be5d1a2c5bd984bcfbb9469447 100644
--- a/Source/core/paint/BoxClipper.h
+++ b/Source/core/paint/BoxClipper.h
@@ -7,6 +7,7 @@
#include "platform/geometry/LayoutPoint.h"
#include "platform/graphics/paint/DisplayItem.h"
+#include "wtf/Allocator.h"
namespace blink {
@@ -16,6 +17,7 @@ struct PaintInfo;
enum ContentsClipBehavior { ForceContentsClip, SkipContentsClipIfPossible };
class BoxClipper {
+ STACK_ALLOCATED();
public:
BoxClipper(const LayoutBox&, const PaintInfo&, const LayoutPoint& accumulatedOffset, ContentsClipBehavior);
~BoxClipper();

Powered by Google App Engine
This is Rietveld 408576698