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

Unified Diff: Source/core/style/GridCoordinate.h

Issue 1308633005: Make classes and structures in core/style, core/plugins and core/streams 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/style/FillLayer.h ('k') | Source/core/style/GridLength.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/style/GridCoordinate.h
diff --git a/Source/core/style/GridCoordinate.h b/Source/core/style/GridCoordinate.h
index 57cf61ac901ee7acdfdc49a123cfa54cb6b24272..52c4e55482032e5f459729279ef73508748ed43f 100644
--- a/Source/core/style/GridCoordinate.h
+++ b/Source/core/style/GridCoordinate.h
@@ -32,6 +32,7 @@
#define GridCoordinate_h
#include "core/style/GridResolvedPosition.h"
+#include "wtf/FastAllocBase.h"
#include "wtf/HashMap.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/text/WTFString.h"
@@ -46,6 +47,8 @@ const size_t kGridMaxTracks = 1000000;
// and |resolvedFinalPosition| are grid areas' indexes, NOT grid lines'. Iterating over the
// span should include both |resolvedInitialPosition| and |resolvedFinalPosition| to be correct.
struct GridSpan {
+ WTF_MAKE_FAST_ALLOCATED(GridSpan);
+public:
static PassOwnPtr<GridSpan> create(const GridResolvedPosition& resolvedInitialPosition, const GridResolvedPosition& resolvedFinalPosition)
{
return adoptPtr(new GridSpan(resolvedInitialPosition, resolvedFinalPosition));
@@ -141,6 +144,8 @@ struct GridSpan {
// This represents a grid area that spans in both rows' and columns' direction.
struct GridCoordinate {
+ WTF_MAKE_FAST_ALLOCATED(GridCoordinate);
+public:
// HashMap requires a default constuctor.
GridCoordinate()
: columns(0, 0)
« no previous file with comments | « Source/core/style/FillLayer.h ('k') | Source/core/style/GridLength.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698