Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/ng/ng_box.h |
| diff --git a/third_party/WebKit/Source/core/layout/ng/ng_box.h b/third_party/WebKit/Source/core/layout/ng/ng_box.h |
| index a402ad24c2b1cde35a50da3d5d4b05ffe32b9f1e..5f1003250d8ad7862de6736f3b61602b446be4ed 100644 |
| --- a/third_party/WebKit/Source/core/layout/ng/ng_box.h |
| +++ b/third_party/WebKit/Source/core/layout/ng/ng_box.h |
| @@ -32,6 +32,11 @@ class CORE_EXPORT NGBox final : public GarbageCollectedFinalized<NGBox> { |
| // TODO(layout-ng): Should we have a StartLayout function to avoid passing |
| // the same space for each Layout iteration? |
| bool Layout(const NGConstraintSpace*, NGFragment**); |
| + |
| + // Computes the value of min-content and max-content for this box. |
| + void ComputeMinAndMaxContentSizes(NGFragment** min_content, |
|
eae
2016/10/31 19:30:26
Shouldn't this return rects or values? Returning a
cbiesinger
2016/10/31 19:48:37
I also prefer LayoutUnit but I thought we agreed i
Gleb Lanbin
2016/10/31 19:52:47
IMO returning std::pair<NGFragment*, NGFragment*>
ikilpatrick
2016/11/01 15:35:11
I'm ok with returning a pair of layout units if pe
atotic
2016/11/01 16:59:00
This API will call Layout() in a tight loop, which
cbiesinger
2016/11/01 19:10:04
Collective answer to all the comments:
- I dislike
|
| + NGFragment** max_content); |
| + |
| const ComputedStyle* Style() const; |
| NGBox* NextSibling(); |
| @@ -41,12 +46,7 @@ class CORE_EXPORT NGBox final : public GarbageCollectedFinalized<NGBox> { |
| void SetNextSibling(NGBox*); |
| void SetFirstChild(NGBox*); |
| - DEFINE_INLINE_VIRTUAL_TRACE() { |
| - visitor->trace(algorithm_); |
| - visitor->trace(fragment_); |
| - visitor->trace(next_sibling_); |
| - visitor->trace(first_child_); |
| - } |
| + DECLARE_VIRTUAL_TRACE(); |
| private: |
| // This is necessary for interop between old and new trees -- after our parent |