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

Unified Diff: Source/core/layout/LayoutTableSection.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/LayoutTable.h ('k') | Source/core/layout/LayoutTestHelper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutTableSection.h
diff --git a/Source/core/layout/LayoutTableSection.h b/Source/core/layout/LayoutTableSection.h
index 7a8f1c2d5b048af52acfed2a2e3ec385e7d7fd51..84f18232946d84b722905c51b3affb497e79be1f 100644
--- a/Source/core/layout/LayoutTableSection.h
+++ b/Source/core/layout/LayoutTableSection.h
@@ -43,6 +43,7 @@ enum CollapsedBorderSide {
// Helper class for paintObject.
class CellSpan {
+ STACK_ALLOCATED();
public:
CellSpan(unsigned start, unsigned end)
: m_start(start)
@@ -92,6 +93,7 @@ public:
typedef Vector<LayoutTableCell*, 2> SpanningLayoutTableCells;
struct CellStruct {
+ ALLOW_ONLY_INLINE_ALLOCATION();
public:
Vector<LayoutTableCell*, 1> cells;
bool inColSpan; // true for columns after the first in a colspan
@@ -117,6 +119,7 @@ public:
typedef Vector<CellStruct> Row;
struct RowStruct {
+ ALLOW_ONLY_INLINE_ALLOCATION();
public:
RowStruct()
: rowLayoutObject(nullptr)
@@ -131,6 +134,7 @@ public:
};
struct SpanningRowsHeight {
+ STACK_ALLOCATED();
WTF_MAKE_NONCOPYABLE(SpanningRowsHeight);
public:
« no previous file with comments | « Source/core/layout/LayoutTable.h ('k') | Source/core/layout/LayoutTestHelper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698