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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_inline_node.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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/ng/ng_inline_node.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_inline_node.h b/third_party/WebKit/Source/core/layout/ng/ng_inline_node.h
index 69d3d37fa553353dd7bba42a025b8140bb4ded52..b49afb9c855d6297c415b72ded0f84b8dbc748f9 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_inline_node.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_inline_node.h
@@ -207,8 +207,8 @@ inline void NGInlineNode::AssertEndOffset(unsigned index,
DEFINE_TYPE_CASTS(NGInlineNode,
NGLayoutInputNode,
node,
- node->Type() == NGLayoutInputNode::kLegacyInline,
- node.Type() == NGLayoutInputNode::kLegacyInline);
+ node->IsInline(),
+ node.IsInline());
// A vector-like object that points to a subset of an array of
// |NGLayoutInlineItem|.

Powered by Google App Engine
This is Rietveld 408576698