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

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

Issue 2850893003: Add container_block_offset,top_offset to NGFloatingObject. (Closed)
Patch Set: add-inline-to-block-flow-with-block-children-that-do-not-need-anonymous-boxes.html is still broken 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 unified diff | Download patch
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/geometry/ng_margin_strut.h" 9 #include "core/layout/ng/geometry/ng_margin_strut.h"
10 #include "core/layout/ng/ng_block_break_token.h" 10 #include "core/layout/ng/ng_block_break_token.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // Positions the fragment that knows its BFC offset. 88 // Positions the fragment that knows its BFC offset.
89 NGLogicalOffset PositionWithBfcOffset(const NGBoxFragment&); 89 NGLogicalOffset PositionWithBfcOffset(const NGBoxFragment&);
90 90
91 // Positions using the parent BFC offset. 91 // Positions using the parent BFC offset.
92 // Fragment doesn't know its offset but we can still calculate its BFC 92 // Fragment doesn't know its offset but we can still calculate its BFC
93 // position because the parent fragment's BFC is known. 93 // position because the parent fragment's BFC is known.
94 // Example: 94 // Example:
95 // BFC Offset is known here because of the padding. 95 // BFC Offset is known here because of the padding.
96 // <div style="padding: 1px"> 96 // <div style="padding: 1px">
97 // <div id="empty-div" style="margins: 1px"></div> 97 // <div id="empty-div" style="margins: 1px"></div>
98 NGLogicalOffset PositionWithParentBfc(const NGBoxFragment&); 98 NGLogicalOffset PositionWithParentBfc(const NGConstraintSpace&,
99 const NGBoxFragment&);
99 100
100 NGLogicalOffset PositionLegacy(const NGConstraintSpace& child_space); 101 NGLogicalOffset PositionLegacy(const NGConstraintSpace& child_space);
101 102
102 void FinishFloatChildLayout(const ComputedStyle&, 103 void FinishFloatChildLayout(const ComputedStyle&,
103 const NGConstraintSpace&, 104 const NGConstraintSpace&,
104 const NGLayoutResult*); 105 const NGLayoutResult*);
105 106
106 // Final adjustments before fragment creation. We need to prevent the 107 // Final adjustments before fragment creation. We need to prevent the
107 // fragment from crossing fragmentainer boundaries, and rather create a break 108 // fragment from crossing fragmentainer boundaries, and rather create a break
108 // token if we're out of space. 109 // token if we're out of space.
(...skipping 13 matching lines...) Expand all
122 LayoutUnit max_inline_size_; 123 LayoutUnit max_inline_size_;
123 // MarginStrut for the previous child. 124 // MarginStrut for the previous child.
124 NGMarginStrut curr_margin_strut_; 125 NGMarginStrut curr_margin_strut_;
125 NGLogicalOffset curr_bfc_offset_; 126 NGLogicalOffset curr_bfc_offset_;
126 NGBoxStrut curr_child_margins_; 127 NGBoxStrut curr_child_margins_;
127 }; 128 };
128 129
129 } // namespace blink 130 } // namespace blink
130 131
131 #endif // NGBlockLayoutAlgorithm_h 132 #endif // NGBlockLayoutAlgorithm_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698