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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h

Issue 2786923004: [LayoutNG] WIP on storing layout output in the legacy tree for multicol. (Closed)
Patch Set: Fake a flow thread portion height value. Created 3 years, 9 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
Index: third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h b/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h
index ed46db7dfa458a48bb2d7831fa9f3ddbbf4f6e7a..1a78096eb811a7f87acc1fd7429f7e6d82cd265b 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h
@@ -36,6 +36,14 @@ class CORE_EXPORT NGBlockLayoutAlgorithm
Optional<MinMaxContentSize> ComputeMinMaxContentSize() const override;
virtual RefPtr<NGLayoutResult> Layout() override;
+ protected:
+ NGFragmentBuilder builder_;
+ NGConstraintSpaceBuilder space_builder_;
+
+ NGBoxStrut border_and_padding_;
+ LayoutUnit content_size_;
+ LayoutUnit max_inline_size_;
+
private:
NGBoxStrut CalculateMargins(NGLayoutInputNode* child,
const NGConstraintSpace& space);
@@ -62,12 +70,6 @@ class CORE_EXPORT NGBlockLayoutAlgorithm
// Updates the fragment's BFC offset if it's not already set.
void UpdateFragmentBfcOffset(const NGLogicalOffset& offset);
- NGFragmentBuilder builder_;
- NGConstraintSpaceBuilder space_builder_;
-
- NGBoxStrut border_and_padding_;
- LayoutUnit content_size_;
- LayoutUnit max_inline_size_;
// MarginStrut for the previous child.
NGMarginStrut curr_margin_strut_;
NGLogicalOffset curr_bfc_offset_;

Powered by Google App Engine
This is Rietveld 408576698