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

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

Issue 2865903002: [LayoutNG] Inline margin/border/padding, inter-item breaking, and tests (Closed)
Patch Set: cbiesinger review 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 2017 The Chromium Authors. All rights reserved. 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 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 NGInlineItemResult_h 5 #ifndef NGInlineItemResult_h
6 #define NGInlineItemResult_h 6 #define NGInlineItemResult_h
7 7
8 #include "core/layout/ng/geometry/ng_box_strut.h" 8 #include "core/layout/ng/geometry/ng_box_strut.h"
9 #include "core/layout/ng/ng_layout_result.h" 9 #include "core/layout/ng/ng_layout_result.h"
10 #include "platform/LayoutUnit.h" 10 #include "platform/LayoutUnit.h"
(...skipping 24 matching lines...) Expand all
35 // ShapeResult for text items. Maybe different from NGInlineItem if re-shape 35 // ShapeResult for text items. Maybe different from NGInlineItem if re-shape
36 // is needed in the line breaker. 36 // is needed in the line breaker.
37 RefPtr<ShapeResult> shape_result; 37 RefPtr<ShapeResult> shape_result;
38 38
39 // NGLayoutResult for atomic inline items. 39 // NGLayoutResult for atomic inline items.
40 RefPtr<NGLayoutResult> layout_result; 40 RefPtr<NGLayoutResult> layout_result;
41 41
42 // NGBoxStrut for atomic inline items. 42 // NGBoxStrut for atomic inline items.
43 NGBoxStrut margins; 43 NGBoxStrut margins;
44 44
45 // Inside of this is not breakable.
46 // Used only during the line breaking.
ikilpatrick 2017/05/24 04:03:38 Used only during line breaking. (& below).
kojii 2017/05/24 15:50:55 Thank you, articles are not easy for me...
47 unsigned no_break_opportunities_inside : 1;
48
49 // Lines must not break after this.
50 // Used only during the line breaking.
51 unsigned prohibit_break_after : 1;
52
45 NGInlineItemResult(); 53 NGInlineItemResult();
46 NGInlineItemResult(unsigned index, unsigned start, unsigned end); 54 NGInlineItemResult(unsigned index, unsigned start, unsigned end);
47 }; 55 };
48 56
49 // Represents a set of NGInlineItemResult that form a line box. 57 // Represents a set of NGInlineItemResult that form a line box.
50 using NGInlineItemResults = Vector<NGInlineItemResult, 32>; 58 using NGInlineItemResults = Vector<NGInlineItemResult, 32>;
51 59
52 } // namespace blink 60 } // namespace blink
53 61
54 #endif // NGInlineItemResult_h 62 #endif // NGInlineItemResult_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698