OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef NGInlineItemResult_h | |
6 #define NGInlineItemResult_h | |
7 | |
8 #include "core/layout/ng/ng_layout_result.h" | |
9 #include "platform/LayoutUnit.h" | |
10 #include "platform/fonts/shaping/ShapeResult.h" | |
11 | |
12 namespace blink { | |
13 | |
14 // The result of measuring NGInlineItem. | |
15 // Produced while determining the line break points. Data needed to create | |
16 // line boxes are stored in NGInlineItemResults. | |
eae
2017/05/10 21:31:38
Add a comment explaining that this is a transient
kojii
2017/05/11 16:17:36
Made DISALLOW_NEW_EXCEPT_PLACEMENT_NEW() to allow
| |
17 struct CORE_EXPORT NGInlineItemResult { | |
18 unsigned item_index; | |
19 unsigned start_offset; | |
20 unsigned end_offset; | |
21 LayoutUnit inline_size; | |
22 RefPtr<ShapeResult> shape_result; | |
23 RefPtr<NGLayoutResult> layout_result; | |
24 | |
25 NGInlineItemResult(); | |
26 NGInlineItemResult(unsigned index, unsigned start, unsigned end); | |
27 }; | |
28 | |
29 using NGInlineItemResults = Vector<NGInlineItemResult, 32>; | |
30 | |
31 } // namespace blink | |
32 | |
33 #endif // NGInlineItemResult_h | |
OLD | NEW |