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

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

Issue 2870253002: [LayoutNG] Remove space_builder_ member from block algorithm. (Closed)
Patch Set: Created 3 years, 7 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 | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d1bf12a165ecd2d9f6d1eba3205aed692c3e1fcd..b494d2e27255894743af1f09e546e70c1ed94ef7 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
@@ -48,13 +48,12 @@ class CORE_EXPORT NGBlockLayoutAlgorithm
virtual RefPtr<NGLayoutResult> Layout() override;
private:
- NGBoxStrut CalculateMargins(NGLayoutInputNode* child,
- const NGConstraintSpace& space);
+ NGBoxStrut CalculateMargins(NGLayoutInputNode* child);
// Creates a new constraint space for the current child.
RefPtr<NGConstraintSpace> CreateConstraintSpaceForChild(
const NGLogicalOffset& child_bfc_offset,
- NGLayoutInputNode*);
+ const NGLayoutInputNode&);
// @return Estimated BFC offset for the "to be layout" child.
NGLogicalOffset PrepareChildLayout(NGLayoutInputNode*);
@@ -115,7 +114,8 @@ class CORE_EXPORT NGBlockLayoutAlgorithm
NGLogicalOffset CalculateLogicalOffset(
const WTF::Optional<NGLogicalOffset>& known_fragment_offset);
- NGConstraintSpaceBuilder space_builder_;
+ NGLogicalSize child_available_size_;
+ NGLogicalSize child_percentage_size_;
NGBoxStrut border_and_padding_;
LayoutUnit content_size_;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698