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

Side by Side Diff: third_party/WebKit/Source/core/layout/ng/ng_block_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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_block_child_iterator_test.cc » ('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 NGBlockBreakToken_h 5 #ifndef NGBlockBreakToken_h
6 #define NGBlockBreakToken_h 6 #define NGBlockBreakToken_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 #include "platform/LayoutUnit.h" 10 #include "platform/LayoutUnit.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 explicit NGBlockBreakToken(NGLayoutInputNode* node); 64 explicit NGBlockBreakToken(NGLayoutInputNode* node);
65 65
66 LayoutUnit used_block_size_; 66 LayoutUnit used_block_size_;
67 Vector<RefPtr<NGBreakToken>> child_break_tokens_; 67 Vector<RefPtr<NGBreakToken>> child_break_tokens_;
68 }; 68 };
69 69
70 DEFINE_TYPE_CASTS(NGBlockBreakToken, 70 DEFINE_TYPE_CASTS(NGBlockBreakToken,
71 NGBreakToken, 71 NGBreakToken,
72 token, 72 token,
73 token->Type() == NGBreakToken::kBlockBreakToken, 73 token->IsBlockType(),
74 token.Type() == NGBreakToken::kBlockBreakToken); 74 token.IsBlockType());
75 75
76 } // namespace blink 76 } // namespace blink
77 77
78 #endif // NGBlockBreakToken_h 78 #endif // NGBlockBreakToken_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_block_child_iterator_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698