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

Unified Diff: Source/core/paint/DeprecatedPaintLayerStackingNodeIterator.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/DeprecatedPaintLayerStackingNodeIterator.h
diff --git a/Source/core/paint/DeprecatedPaintLayerStackingNodeIterator.h b/Source/core/paint/DeprecatedPaintLayerStackingNodeIterator.h
index 65d4b5af078934f8d9d5ac2135e12dee223803aa..cc5d209e69a5dc6c507483c02ae64929e0f50276 100644
--- a/Source/core/paint/DeprecatedPaintLayerStackingNodeIterator.h
+++ b/Source/core/paint/DeprecatedPaintLayerStackingNodeIterator.h
@@ -31,6 +31,7 @@
#ifndef DeprecatedPaintLayerStackingNodeIterator_h
#define DeprecatedPaintLayerStackingNodeIterator_h
+#include "wtf/Allocator.h"
#include "wtf/Noncopyable.h"
namespace blink {
@@ -48,6 +49,7 @@ class DeprecatedPaintLayer;
// This iterator walks the DeprecatedPaintLayerStackingNode lists in the following order:
// NegativeZOrderChildren -> NormalFlowChildren -> PositiveZOrderChildren.
class DeprecatedPaintLayerStackingNodeIterator {
+ STACK_ALLOCATED();
WTF_MAKE_NONCOPYABLE(DeprecatedPaintLayerStackingNodeIterator);
public:
DeprecatedPaintLayerStackingNodeIterator(const DeprecatedPaintLayerStackingNode& root, unsigned whichChildren);
@@ -64,6 +66,7 @@ private:
// This iterator is similar to DeprecatedPaintLayerStackingNodeIterator but it walks the lists in reverse order
// (from the last item to the first one).
class DeprecatedPaintLayerStackingNodeReverseIterator {
+ STACK_ALLOCATED();
WTF_MAKE_NONCOPYABLE(DeprecatedPaintLayerStackingNodeReverseIterator);
public:
DeprecatedPaintLayerStackingNodeReverseIterator(const DeprecatedPaintLayerStackingNode& root, unsigned whichChildren)

Powered by Google App Engine
This is Rietveld 408576698