Commit 979df9c3 authored by Christian Biesinger's avatar Christian Biesinger Committed by Commit Bot

[layoutng] Use partition alloc for NGInlineLayoutStateStack

Also mark NGInlineBoxState as not heap allocated.

R=kojii@chromium.org

Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng
Change-Id: I0c605c6123cab202190e9415cc9cb9a81d0cd832
Reviewed-on: https://chromium-review.googlesource.com/1237237
Commit-Queue: Koji Ishii <kojii@chromium.org>
Reviewed-by: default avatarKoji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#593062}
parent 107706c9
......@@ -34,6 +34,9 @@ struct NGPendingPositions {
// require ancestor position or size.
// This is a transient object only while building line boxes in a block.
struct NGInlineBoxState {
DISALLOW_NEW();
public:
unsigned fragment_start = 0;
const NGInlineItem* item = nullptr;
const ComputedStyle* style = nullptr;
......@@ -108,6 +111,8 @@ struct NGInlineBoxState {
// 2) Performs layout when the positin/size of a box was computed.
// 3) Cache common values for a box.
class CORE_EXPORT NGInlineLayoutStateStack {
USING_FAST_MALLOC(NGInlineLayoutStateStack);
public:
// The box state for the line box.
NGInlineBoxState& LineBoxState() { return stack_.front(); }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment