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

Unified Diff: Source/core/layout/line/InlineIterator.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/InlineBox.h ('k') | Source/core/layout/line/LayoutTextInfo.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/line/InlineIterator.h
diff --git a/Source/core/layout/line/InlineIterator.h b/Source/core/layout/line/InlineIterator.h
index 6d85f18f1dd328ca1f79aefdc45f38b0a2e8795e..dd7a299d1519c7f142525a969d1cbe6628628a41 100644
--- a/Source/core/layout/line/InlineIterator.h
+++ b/Source/core/layout/line/InlineIterator.h
@@ -28,7 +28,7 @@
#include "core/layout/api/LineLayoutBlockFlow.h"
#include "core/layout/api/LineLayoutInline.h"
#include "core/layout/api/LineLayoutText.h"
-
+#include "wtf/Allocator.h"
#include "wtf/StdLibExtras.h"
namespace blink {
@@ -37,6 +37,7 @@ namespace blink {
// text children. InlineIterator will use bidiNext to find the next LayoutText
// optionally notifying a BidiResolver every time it steps into/out of a LayoutInline.
class InlineIterator {
+ ALLOW_ONLY_INLINE_ALLOCATION();
public:
enum IncrementRule {
FastIncrementInIsolatedLayout,
@@ -336,6 +337,7 @@ inline void InlineIterator::fastIncrementInTextNode()
// FIXME: This is used by LayoutBlockFlow for simplified layout, and has nothing to do with bidi
// it shouldn't use functions called bidiFirst and bidiNext.
class InlineWalker {
+ STACK_ALLOCATED();
public:
InlineWalker(LayoutBlockFlow* root)
: m_root(LineLayoutBlockFlow(root))
@@ -572,6 +574,7 @@ enum AppendRunBehavior {
};
class IsolateTracker {
+ STACK_ALLOCATED();
public:
explicit IsolateTracker(BidiRunList<BidiRun>& runs, unsigned nestedIsolateCount)
: m_nestedIsolateCount(nestedIsolateCount)
« no previous file with comments | « Source/core/layout/line/InlineBox.h ('k') | Source/core/layout/line/LayoutTextInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698