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

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

Issue 2797053002: Remove redundant casts, use NGLayoutInputNode base functions everywhere (Closed)
Patch Set: Created 3 years, 8 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 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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_break_token.h ('k') | third_party/WebKit/Source/core/layout/ng/ng_inline_node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698