| OLD | NEW |
| 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 NGInlineLayoutAlgorithm_h | 5 #ifndef NGInlineLayoutAlgorithm_h |
| 6 #define NGInlineLayoutAlgorithm_h | 6 #define NGInlineLayoutAlgorithm_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/layout/ng/geometry/ng_logical_offset.h" | 9 #include "core/layout/ng/geometry/ng_logical_offset.h" |
| 10 #include "core/layout/ng/inline/ng_inline_box_state.h" | 10 #include "core/layout/ng/inline/ng_inline_box_state.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 void BidiReorder(NGInlineItemResults*); | 55 void BidiReorder(NGInlineItemResults*); |
| 56 | 56 |
| 57 bool PlaceItems(NGLineInfo*, RefPtr<NGInlineBreakToken>); | 57 bool PlaceItems(NGLineInfo*, RefPtr<NGInlineBreakToken>); |
| 58 NGInlineBoxState* PlaceAtomicInline(const NGInlineItem&, | 58 NGInlineBoxState* PlaceAtomicInline(const NGInlineItem&, |
| 59 NGInlineItemResult*, | 59 NGInlineItemResult*, |
| 60 bool is_first_line, | 60 bool is_first_line, |
| 61 LayoutUnit position, | 61 LayoutUnit position, |
| 62 NGLineBoxFragmentBuilder*, | 62 NGLineBoxFragmentBuilder*, |
| 63 NGTextFragmentBuilder*); | 63 NGTextFragmentBuilder*); |
| 64 | 64 |
| 65 void ApplyTextAlign(const ComputedStyle&, | 65 void ApplyTextAlign(ETextAlign, |
| 66 ETextAlign, | |
| 67 LayoutUnit* line_left, | 66 LayoutUnit* line_left, |
| 68 LayoutUnit inline_size, | 67 LayoutUnit inline_size, |
| 69 LayoutUnit available_width); | 68 LayoutUnit available_width); |
| 70 | 69 |
| 71 LayoutUnit ComputeContentSize(const NGLineInfo&, LayoutUnit line_bottom); | 70 LayoutUnit ComputeContentSize(const NGLineInfo&, LayoutUnit line_bottom); |
| 72 | 71 |
| 73 NGLayoutOpportunity FindLayoutOpportunityForLine(); | 72 NGLayoutOpportunity FindLayoutOpportunityForLine(); |
| 74 | 73 |
| 75 NGInlineLayoutStateStack box_states_; | 74 NGInlineLayoutStateStack box_states_; |
| 76 LayoutUnit content_size_; | 75 LayoutUnit content_size_; |
| 77 LayoutUnit max_inline_size_; | 76 LayoutUnit max_inline_size_; |
| 78 FontBaseline baseline_type_ = FontBaseline::kAlphabeticBaseline; | 77 FontBaseline baseline_type_ = FontBaseline::kAlphabeticBaseline; |
| 79 | 78 |
| 80 NGLogicalOffset bfc_offset_; | 79 NGLogicalOffset bfc_offset_; |
| 81 NGLogicalRect current_opportunity_; | 80 NGLogicalRect current_opportunity_; |
| 82 | 81 |
| 83 unsigned is_horizontal_writing_mode_ : 1; | 82 unsigned is_horizontal_writing_mode_ : 1; |
| 84 | 83 |
| 85 NGConstraintSpaceBuilder space_builder_; | 84 NGConstraintSpaceBuilder space_builder_; |
| 86 NGBoxStrut border_and_padding_; | 85 NGBoxStrut border_and_padding_; |
| 87 }; | 86 }; |
| 88 | 87 |
| 89 } // namespace blink | 88 } // namespace blink |
| 90 | 89 |
| 91 #endif // NGInlineLayoutAlgorithm_h | 90 #endif // NGInlineLayoutAlgorithm_h |
| OLD | NEW |