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

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

Issue 2330153002: [layoutng] Better handling of border and padding (Closed)
Patch Set: undo comment change Created 4 years, 3 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NGBlockLayoutAlgorithm_h 5 #ifndef NGBlockLayoutAlgorithm_h
6 #define NGBlockLayoutAlgorithm_h 6 #define NGBlockLayoutAlgorithm_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/layout/ng/ng_box.h" 9 #include "core/layout/ng/ng_box.h"
10 #include "core/layout/ng/ng_fragment_builder.h" 10 #include "core/layout/ng/ng_fragment_builder.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 const NGMarginStrut& children_margin_strut); 57 const NGMarginStrut& children_margin_strut);
58 58
59 RefPtr<const ComputedStyle> style_; 59 RefPtr<const ComputedStyle> style_;
60 Member<NGBox> first_child_; 60 Member<NGBox> first_child_;
61 61
62 enum State { kStateInit, kStateChildLayout, kStateFinalize }; 62 enum State { kStateInit, kStateChildLayout, kStateFinalize };
63 State state_; 63 State state_;
64 Member<NGFragmentBuilder> builder_; 64 Member<NGFragmentBuilder> builder_;
65 Member<NGConstraintSpace> constraint_space_for_children_; 65 Member<NGConstraintSpace> constraint_space_for_children_;
66 Member<NGBox> current_child_; 66 Member<NGBox> current_child_;
67 NGBoxStrut border_and_padding_;
67 LayoutUnit content_size_; 68 LayoutUnit content_size_;
68 LayoutUnit max_inline_size_; 69 LayoutUnit max_inline_size_;
69 // MarginStrut for the previous child. 70 // MarginStrut for the previous child.
70 NGMarginStrut prev_child_margin_strut_; 71 NGMarginStrut prev_child_margin_strut_;
71 }; 72 };
72 73
73 } // namespace blink 74 } // namespace blink
74 75
75 #endif // NGBlockLayoutAlgorithm_h 76 #endif // NGBlockLayoutAlgorithm_h
OLDNEW
« 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