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

Unified Diff: Source/core/layout/VerticalPositionCache.h

Issue 1318713003: Make classes and structures in core/layout 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/layout/TextAutosizer.h ('k') | Source/core/layout/api/LineLayoutItem.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/VerticalPositionCache.h
diff --git a/Source/core/layout/VerticalPositionCache.h b/Source/core/layout/VerticalPositionCache.h
index 666f3167e76429b97ff0c9896fa003b777da5d14..9e63cbc1a51b780edf50a44e0872f407f5681298 100644
--- a/Source/core/layout/VerticalPositionCache.h
+++ b/Source/core/layout/VerticalPositionCache.h
@@ -27,6 +27,7 @@
#define VerticalPositionCache_h
#include "platform/fonts/FontBaseline.h"
+#include "wtf/Allocator.h"
#include "wtf/HashMap.h"
namespace blink {
@@ -37,6 +38,7 @@ class LayoutObject;
const int PositionUndefined = 0x80000000;
class VerticalPositionCache {
+ STACK_ALLOCATED();
WTF_MAKE_NONCOPYABLE(VerticalPositionCache);
public:
VerticalPositionCache()
« no previous file with comments | « Source/core/layout/TextAutosizer.h ('k') | Source/core/layout/api/LineLayoutItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698