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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/ng/ng_inline_break_token.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_inline_break_token.h b/third_party/WebKit/Source/core/layout/ng/ng_inline_break_token.h
index d6a46034e0f13963ea8082d9e73fb2b5a1651b56..dadeaac82585a5f2a5c0aba167650851194d9c60 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_inline_break_token.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_inline_break_token.h
@@ -45,8 +45,8 @@ class CORE_EXPORT NGInlineBreakToken : public NGBreakToken {
DEFINE_TYPE_CASTS(NGInlineBreakToken,
NGBreakToken,
token,
- token->Type() == NGBreakToken::kInlineBreakToken,
- token.Type() == NGBreakToken::kInlineBreakToken);
+ token->IsInlineType(),
+ token.IsInlineType());
} // namespace blink
« 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