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 NGInlineBreakToken_h | 5 #ifndef NGInlineBreakToken_h |
6 #define NGInlineBreakToken_h | 6 #define NGInlineBreakToken_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/layout/ng/ng_break_token.h" | 9 #include "core/layout/ng/ng_break_token.h" |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 | 38 |
39 explicit NGInlineBreakToken(NGLayoutInputNode* node); | 39 explicit NGInlineBreakToken(NGLayoutInputNode* node); |
40 | 40 |
41 unsigned item_index_; | 41 unsigned item_index_; |
42 unsigned text_offset_; | 42 unsigned text_offset_; |
43 }; | 43 }; |
44 | 44 |
45 DEFINE_TYPE_CASTS(NGInlineBreakToken, | 45 DEFINE_TYPE_CASTS(NGInlineBreakToken, |
46 NGBreakToken, | 46 NGBreakToken, |
47 token, | 47 token, |
48 token->Type() == NGBreakToken::kInlineBreakToken, | 48 token->IsInlineType(), |
49 token.Type() == NGBreakToken::kInlineBreakToken); | 49 token.IsInlineType()); |
50 | 50 |
51 } // namespace blink | 51 } // namespace blink |
52 | 52 |
53 #endif // NGInlineBreakToken_h | 53 #endif // NGInlineBreakToken_h |
OLD | NEW |