diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/style/grid_area.h')
-rw-r--r-- | chromium/third_party/blink/renderer/core/style/grid_area.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chromium/third_party/blink/renderer/core/style/grid_area.h b/chromium/third_party/blink/renderer/core/style/grid_area.h index 8c9bb4245e2..a7be249009d 100644 --- a/chromium/third_party/blink/renderer/core/style/grid_area.h +++ b/chromium/third_party/blink/renderer/core/style/grid_area.h @@ -138,12 +138,13 @@ struct GridSpan { private: enum GridSpanType { kUntranslatedDefinite, kTranslatedDefinite, kIndefinite }; - GridSpan(int start_line, int end_line, GridSpanType type) : type_(type) { + template <typename T> + GridSpan(T start_line, T end_line, GridSpanType type) : type_(type) { #if DCHECK_IS_ON() DCHECK_LT(start_line, end_line); if (type == kTranslatedDefinite) { - DCHECK_GE(start_line, 0); - DCHECK_GT(end_line, 0); + DCHECK_GE(start_line, static_cast<T>(0)); + DCHECK_GT(end_line, static_cast<T>(0)); } #endif |