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

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

Issue 2871733003: [LayoutNG] Refactor NGLineBreaker for ShapingLineBreaker (Closed)
Patch Set: WIP 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698