| 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/ng_break_token.h" | 9 #include "core/layout/ng/ng_break_token.h" |
| 10 #include "core/layout/ng/ng_layout_algorithm.h" | 10 #include "core/layout/ng/ng_layout_algorithm.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 // fragments within. | 30 // fragments within. |
| 31 NGTextLayoutAlgorithm(NGInlineNode* inline_box, | 31 NGTextLayoutAlgorithm(NGInlineNode* inline_box, |
| 32 NGConstraintSpace* space, | 32 NGConstraintSpace* space, |
| 33 NGBreakToken* break_token = nullptr); | 33 NGBreakToken* break_token = nullptr); |
| 34 | 34 |
| 35 RefPtr<NGLayoutResult> Layout() override; | 35 RefPtr<NGLayoutResult> Layout() override; |
| 36 void LayoutInline(NGLineBuilder*); | 36 void LayoutInline(NGLineBuilder*); |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 Persistent<NGInlineNode> inline_box_; | 39 Persistent<NGInlineNode> inline_box_; |
| 40 Persistent<NGConstraintSpace> constraint_space_; | 40 NGConstraintSpace* constraint_space_; |
| 41 Persistent<NGBreakToken> break_token_; | 41 Persistent<NGBreakToken> break_token_; |
| 42 | 42 |
| 43 friend class NGInlineNodeTest; | 43 friend class NGInlineNodeTest; |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 } // namespace blink | 46 } // namespace blink |
| 47 | 47 |
| 48 #endif // NGInlineLayoutAlgorithm_h | 48 #endif // NGInlineLayoutAlgorithm_h |
| OLD | NEW |