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

Unified Diff: Source/core/paint/DeprecatedPaintLayerClipper.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/DeprecatedPaintLayerClipper.h
diff --git a/Source/core/paint/DeprecatedPaintLayerClipper.h b/Source/core/paint/DeprecatedPaintLayerClipper.h
index 97f0fc8cc85a72cffe5bb8e54516a444eb51801b..a0303716c08c6eb070bd53d13e5d246f8d256bca 100644
--- a/Source/core/paint/DeprecatedPaintLayerClipper.h
+++ b/Source/core/paint/DeprecatedPaintLayerClipper.h
@@ -48,6 +48,7 @@
#include "core/layout/ClipRects.h"
#include "core/layout/ClipRectsCache.h"
#include "core/layout/LayoutBox.h"
+#include "wtf/Allocator.h"
namespace blink {
@@ -56,6 +57,7 @@ class DeprecatedPaintLayer;
// This is the state information passed down
// on the stack for calculating clip rects.
struct ClipRectComputationState {
+ STACK_ALLOCATED();
ClipRectComputationState()
{
currentClipRects.reset(LayoutRect(LayoutRect::infiniteIntRect()));
@@ -77,6 +79,7 @@ enum ShouldRespectOverflowClip {
};
class ClipRectsContext {
+ STACK_ALLOCATED();
public:
ClipRectsContext(const DeprecatedPaintLayer* root, ClipRectsCacheSlot slot, OverlayScrollbarSizeRelevancy relevancy = IgnoreOverlayScrollbarSize, const LayoutSize& accumulation = LayoutSize())
: rootLayer(root)
@@ -125,6 +128,7 @@ private:
};
class DeprecatedPaintLayerClipper {
+ DISALLOW_ALLOCATION();
WTF_MAKE_NONCOPYABLE(DeprecatedPaintLayerClipper);
public:
explicit DeprecatedPaintLayerClipper(LayoutBoxModelObject&);

Powered by Google App Engine
This is Rietveld 408576698