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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 void SetOffset(unsigned start, unsigned end); | 86 void SetOffset(unsigned start, unsigned end); |
87 void SetEndOffset(unsigned); | 87 void SetEndOffset(unsigned); |
88 | 88 |
89 LayoutUnit InlineSize() const; | 89 LayoutUnit InlineSize() const; |
90 LayoutUnit InlineSize(unsigned start, unsigned end) const; | 90 LayoutUnit InlineSize(unsigned start, unsigned end) const; |
91 | 91 |
92 void GetFallbackFonts(HashSet<const SimpleFontData*>*, | 92 void GetFallbackFonts(HashSet<const SimpleFontData*>*, |
93 unsigned start, | 93 unsigned start, |
94 unsigned end) const; | 94 unsigned end) const; |
95 | 95 |
| 96 bool HasStartEdge() const; |
| 97 bool HasEndEdge() const; |
| 98 |
96 static void Split(Vector<NGInlineItem>&, unsigned index, unsigned offset); | 99 static void Split(Vector<NGInlineItem>&, unsigned index, unsigned offset); |
97 static unsigned SetBidiLevel(Vector<NGInlineItem>&, | 100 static unsigned SetBidiLevel(Vector<NGInlineItem>&, |
98 unsigned index, | 101 unsigned index, |
99 unsigned end_offset, | 102 unsigned end_offset, |
100 UBiDiLevel); | 103 UBiDiLevel); |
101 | 104 |
102 void AssertOffset(unsigned offset) const; | 105 void AssertOffset(unsigned offset) const; |
103 void AssertEndOffset(unsigned offset) const; | 106 void AssertEndOffset(unsigned offset) const; |
104 | 107 |
105 String ToString() const; | 108 String ToString() const; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 170 |
168 private: | 171 private: |
169 NGInlineItem* start_item_; | 172 NGInlineItem* start_item_; |
170 unsigned size_; | 173 unsigned size_; |
171 unsigned start_index_; | 174 unsigned start_index_; |
172 }; | 175 }; |
173 | 176 |
174 } // namespace blink | 177 } // namespace blink |
175 | 178 |
176 #endif // NGInlineItem_h | 179 #endif // NGInlineItem_h |
OLD | NEW |