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

Unified Diff: Source/core/layout/line/LineLayoutState.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/line/LineInfo.h ('k') | Source/core/layout/line/LineWidth.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/line/LineLayoutState.h
diff --git a/Source/core/layout/line/LineLayoutState.h b/Source/core/layout/line/LineLayoutState.h
index be26b59d8f6ff819c1aa358658e1cc3fcb8bb59d..fc63d8fd0dc68284ba4e0a37fbfb4bbce4b8684f 100644
--- a/Source/core/layout/line/LineLayoutState.h
+++ b/Source/core/layout/line/LineLayoutState.h
@@ -26,12 +26,14 @@
#include "core/layout/LayoutBlockFlow.h"
#include "platform/geometry/LayoutRect.h"
+#include "wtf/Allocator.h"
namespace blink {
// Like LayoutState for layout(), LineLayoutState keeps track of global information
// during an entire linebox tree layout pass (aka layoutInlineChildren).
class LineLayoutState {
+ STACK_ALLOCATED();
public:
LineLayoutState(bool fullLayout, LayoutUnit& paintInvalidationLogicalTop, LayoutUnit& paintInvalidationLogicalBottom, LayoutFlowThread* flowThread)
: m_lastFloat(nullptr)
« no previous file with comments | « Source/core/layout/line/LineInfo.h ('k') | Source/core/layout/line/LineWidth.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698