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

Unified Diff: Source/core/layout/line/LineWidth.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/LineLayoutState.h ('k') | Source/core/layout/line/TrailingObjects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/line/LineWidth.h
diff --git a/Source/core/layout/line/LineWidth.h b/Source/core/layout/line/LineWidth.h
index c3704356956b06052be64ef5333156eacd40795c..2db3736d6cb6e073958ae4eafd213a5df11e4daf 100644
--- a/Source/core/layout/line/LineWidth.h
+++ b/Source/core/layout/line/LineWidth.h
@@ -32,6 +32,7 @@
#include "core/layout/api/LineLayoutBlockFlow.h"
#include "platform/LayoutUnit.h"
+#include "wtf/Allocator.h"
namespace blink {
@@ -42,6 +43,7 @@ enum IndentTextOrNot { DoNotIndentText, IndentText };
enum WhitespaceTreatment { ExcludeWhitespace, IncludeWhitespace };
class LineWidth {
+ STACK_ALLOCATED();
public:
LineWidth(LineLayoutBlockFlow, bool isFirstLine, IndentTextOrNot shouldIndentText);
« no previous file with comments | « Source/core/layout/line/LineLayoutState.h ('k') | Source/core/layout/line/TrailingObjects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698