OLD | NEW |
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 NGInlineItem_h | 5 #ifndef NGInlineItem_h |
6 #define NGInlineItem_h | 6 #define NGInlineItem_h |
7 | 7 |
8 #include "platform/LayoutUnit.h" | 8 #include "platform/LayoutUnit.h" |
9 #include "platform/fonts/FontFallbackPriority.h" | 9 #include "platform/fonts/FontFallbackPriority.h" |
10 #include "platform/fonts/SimpleFontData.h" | 10 #include "platform/fonts/SimpleFontData.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 // Class representing a single text node or styled inline element with text | 22 // Class representing a single text node or styled inline element with text |
23 // content segmented by style, text direction, sideways rotation, font fallback | 23 // content segmented by style, text direction, sideways rotation, font fallback |
24 // priority (text, symbol, emoji, etc), and script (but not by font). | 24 // priority (text, symbol, emoji, etc), and script (but not by font). |
25 // In this representation TextNodes are merged up into their parent inline | 25 // In this representation TextNodes are merged up into their parent inline |
26 // element where possible. | 26 // element where possible. |
27 class NGInlineItem { | 27 class NGInlineItem { |
28 public: | 28 public: |
29 enum NGInlineItemType { | 29 enum NGInlineItemType { |
30 kText, | 30 kText, |
| 31 kControl, |
31 kAtomicInline, | 32 kAtomicInline, |
32 kOpenTag, | 33 kOpenTag, |
33 kCloseTag, | 34 kCloseTag, |
34 kFloating, | 35 kFloating, |
35 kOutOfFlowPositioned, | 36 kOutOfFlowPositioned, |
36 kBidiControl | 37 kBidiControl |
37 // When adding new values, make sure the bit size of |type_| is large | 38 // When adding new values, make sure the bit size of |type_| is large |
38 // enough to store. | 39 // enough to store. |
39 }; | 40 }; |
40 | 41 |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 166 |
166 private: | 167 private: |
167 NGInlineItem* start_item_; | 168 NGInlineItem* start_item_; |
168 unsigned size_; | 169 unsigned size_; |
169 unsigned start_index_; | 170 unsigned start_index_; |
170 }; | 171 }; |
171 | 172 |
172 } // namespace blink | 173 } // namespace blink |
173 | 174 |
174 #endif // NGInlineItem_h | 175 #endif // NGInlineItem_h |
OLD | NEW |