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

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

Issue 2870413005: [LayoutNG] Add "Control" NGInlineItemType for newlines and tabs (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/inline/ng_inline_items_builder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/inline/ng_inline_items_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698