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

Unified Diff: Source/core/page/scrolling/ScrollingConstraints.h

Issue 1304063005: Make classes and structures in core/page 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
« no previous file with comments | « Source/core/page/WindowFeatures.h ('k') | Source/core/page/scrolling/ScrollingCoordinator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/scrolling/ScrollingConstraints.h
diff --git a/Source/core/page/scrolling/ScrollingConstraints.h b/Source/core/page/scrolling/ScrollingConstraints.h
index cb40ad4ce75feeb75d9b31364cd2ba1fb46a652f..6b3dca6ed15f4f13cb52653d392476c18f874ecc 100644
--- a/Source/core/page/scrolling/ScrollingConstraints.h
+++ b/Source/core/page/scrolling/ScrollingConstraints.h
@@ -27,12 +27,14 @@
#define ScrollingConstraints_h
#include "platform/geometry/FloatRect.h"
+#include "wtf/Allocator.h"
namespace blink {
// ViewportConstraints classes encapsulate data and logic required to reposition elements whose layout
// depends on the viewport rect (i.e., position fixed), when scrolling and zooming.
class ViewportConstraints {
+ STACK_ALLOCATED();
public:
// FIXME: Simplify this code now that position: sticky doesn't exist.
enum ConstraintType {
@@ -74,6 +76,7 @@ protected:
};
class FixedPositionViewportConstraints final : public ViewportConstraints {
+ STACK_ALLOCATED();
public:
FixedPositionViewportConstraints()
: ViewportConstraints()
« no previous file with comments | « Source/core/page/WindowFeatures.h ('k') | Source/core/page/scrolling/ScrollingCoordinator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698