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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_block_child_iterator_test.cc

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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/ng/ng_block_child_iterator_test.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_block_child_iterator_test.cc b/third_party/WebKit/Source/core/layout/ng/ng_block_child_iterator_test.cc
index 7d666fa7b885068a262cb216ab7add7cb3e5e62f..504440ef127db32960db046fb1b415dc5a3bf45a 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_block_child_iterator_test.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_block_child_iterator_test.cc
@@ -55,7 +55,7 @@ TEST_F(NGBlockChildIteratorTest, BreakTokenWithFinishedChild) {
NGLayoutInputNode* node3 = node2->NextSibling();
Vector<RefPtr<NGBreakToken>> child_break_tokens;
- child_break_tokens.push_back(NGBlockBreakToken::create(toNGBlockNode(node1)));
+ child_break_tokens.push_back(NGBlockBreakToken::create(node1));
RefPtr<NGBlockBreakToken> parent_token =
NGBlockBreakToken::create(container, LayoutUnit(50), child_break_tokens);
@@ -66,7 +66,7 @@ TEST_F(NGBlockChildIteratorTest, BreakTokenWithFinishedChild) {
ASSERT_EQ(NGBlockChildIterator::Entry(nullptr, nullptr),
iterator.NextChild());
- child_break_tokens.push_back(NGBlockBreakToken::create(toNGBlockNode(node2)));
+ child_break_tokens.push_back(NGBlockBreakToken::create(node2));
parent_token =
NGBlockBreakToken::create(container, LayoutUnit(50), child_break_tokens);
@@ -93,8 +93,8 @@ TEST_F(NGBlockChildIteratorTest, BreakTokenWithUnFinishedChild) {
NGLayoutInputNode* node3 = node2->NextSibling();
Vector<RefPtr<NGBreakToken>> child_break_tokens;
- RefPtr<NGBreakToken> child_token = NGBlockBreakToken::create(
- toNGBlockNode(node1), LayoutUnit(), child_break_tokens);
+ RefPtr<NGBreakToken> child_token =
+ NGBlockBreakToken::create(node1, LayoutUnit(), child_break_tokens);
child_break_tokens.push_back(child_token);
RefPtr<NGBlockBreakToken> parent_token =
NGBlockBreakToken::create(container, LayoutUnit(50), child_break_tokens);
@@ -108,8 +108,8 @@ TEST_F(NGBlockChildIteratorTest, BreakTokenWithUnFinishedChild) {
ASSERT_EQ(NGBlockChildIterator::Entry(nullptr, nullptr),
iterator.NextChild());
- child_token = NGBlockBreakToken::create(toNGBlockNode(node2), LayoutUnit(),
- child_break_tokens);
+ child_token =
+ NGBlockBreakToken::create(node2, LayoutUnit(), child_break_tokens);
child_break_tokens.push_back(child_token);
parent_token =
NGBlockBreakToken::create(container, LayoutUnit(50), child_break_tokens);

Powered by Google App Engine
This is Rietveld 408576698