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

Unified Diff: Source/core/layout/line/TrailingObjects.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/LineWidth.h ('k') | Source/core/layout/line/WordMeasurement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/line/TrailingObjects.h
diff --git a/Source/core/layout/line/TrailingObjects.h b/Source/core/layout/line/TrailingObjects.h
index ad1e88de33b86d5bff781f524450abbec861d21e..d59f8b6559fa27131aade4f1ff7849ea686daa76 100644
--- a/Source/core/layout/line/TrailingObjects.h
+++ b/Source/core/layout/line/TrailingObjects.h
@@ -26,6 +26,7 @@
#include "core/layout/api/LineLayoutItem.h"
#include "core/layout/api/LineLayoutText.h"
+#include "wtf/Allocator.h"
#include "wtf/Vector.h"
namespace blink {
@@ -53,6 +54,7 @@ typedef MidpointState<InlineIterator> LineMidpointState;
// them in the right place when we start ignoring surplus whitespace.
class TrailingObjects {
+ STACK_ALLOCATED();
public:
TrailingObjects()
: m_whitespace(nullptr)
« no previous file with comments | « Source/core/layout/line/LineWidth.h ('k') | Source/core/layout/line/WordMeasurement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698