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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_layout_input_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_layout_input_node.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_layout_input_node.h b/third_party/WebKit/Source/core/layout/ng/ng_layout_input_node.h
index fd0a0899343fd16101b3caffbdfced618d9238d2..be10d87903bcb93a818bbd1364026693371c8a22 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_layout_input_node.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_layout_input_node.h
@@ -25,9 +25,9 @@ class CORE_EXPORT NGLayoutInputNode
public:
enum NGLayoutInputNodeType { kLegacyBlock = 0, kLegacyInline = 1 };
- bool IsInline() { return type_ == kLegacyInline; }
+ bool IsInline() const { return type_ == kLegacyInline; }
- bool IsBlock() { return type_ == kLegacyBlock; }
+ bool IsBlock() const { return type_ == kLegacyBlock; }
virtual ~NGLayoutInputNode(){};

Powered by Google App Engine
This is Rietveld 408576698