Commit a308aec1 authored by Keishi Hattori's avatar Keishi Hattori Committed by Commit Bot

Add STACK_ALLOCATED to LayoutObject referencing structs

Add STACK_ALLOCATED to LayoutObject referencing structs in anticipation of oilpanization of LayoutObjects.

Bug: 1030176
Change-Id: I81bc2a6db7b6ce891885ed106311299dd6c26b9d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2298884Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Keishi Hattori <keishi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#788784}
parent 11d96ec0
...@@ -72,6 +72,9 @@ class CORE_EXPORT CaretDisplayItemClient final : public DisplayItemClient { ...@@ -72,6 +72,9 @@ class CORE_EXPORT CaretDisplayItemClient final : public DisplayItemClient {
friend class ParameterizedComputeCaretRectTest; friend class ParameterizedComputeCaretRectTest;
struct CaretRectAndPainterBlock { struct CaretRectAndPainterBlock {
STACK_ALLOCATED();
public:
PhysicalRect caret_rect; // local to |painter_block| PhysicalRect caret_rect; // local to |painter_block|
LayoutBlock* painter_block = nullptr; LayoutBlock* painter_block = nullptr;
}; };
......
...@@ -66,6 +66,8 @@ enum class TransformedWritingMode { ...@@ -66,6 +66,8 @@ enum class TransformedWritingMode {
typedef Vector<FlexItem, 8> FlexItemVector; typedef Vector<FlexItem, 8> FlexItemVector;
class AutoClearOverrideLogicalHeight { class AutoClearOverrideLogicalHeight {
STACK_ALLOCATED();
public: public:
explicit AutoClearOverrideLogicalHeight(LayoutBox* box) explicit AutoClearOverrideLogicalHeight(LayoutBox* box)
: box_(box), old_override_height_(-1) { : box_(box), old_override_height_(-1) {
......
...@@ -1458,6 +1458,9 @@ void LayoutBlockFlow::MarkDirtyFloatsForPaintInvalidation( ...@@ -1458,6 +1458,9 @@ void LayoutBlockFlow::MarkDirtyFloatsForPaintInvalidation(
// can have distinct borders/margin/padding that contribute to the min/max // can have distinct borders/margin/padding that contribute to the min/max
// width. // width.
struct InlineMinMaxIterator { struct InlineMinMaxIterator {
STACK_ALLOCATED();
public:
LayoutObject* parent; LayoutObject* parent;
LayoutObject* current; LayoutObject* current;
bool end_of_inline; bool end_of_inline;
......
...@@ -40,6 +40,8 @@ ...@@ -40,6 +40,8 @@
namespace blink { namespace blink {
class FlexBoxIterator { class FlexBoxIterator {
STACK_ALLOCATED();
public: public:
FlexBoxIterator(LayoutDeprecatedFlexibleBox* parent) FlexBoxIterator(LayoutDeprecatedFlexibleBox* parent)
: box_(parent), largest_ordinal_(1) { : box_(parent), largest_ordinal_(1) {
......
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