| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CSSGridAutoRepeatValue_h | 5 #ifndef CSSGridAutoRepeatValue_h |
| 6 #define CSSGridAutoRepeatValue_h | 6 #define CSSGridAutoRepeatValue_h |
| 7 | 7 |
| 8 #include "core/CSSValueKeywords.h" | 8 #include "core/CSSValueKeywords.h" |
| 9 #include "core/css/CSSValueList.h" | 9 #include "core/css/CSSValueList.h" |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 String customCSSText() const; | 32 String customCSSText() const; |
| 33 CSSValueID autoRepeatID() const { return m_autoRepeatID; } | 33 CSSValueID autoRepeatID() const { return m_autoRepeatID; } |
| 34 | 34 |
| 35 DEFINE_INLINE_TRACE_AFTER_DISPATCH() { | 35 DEFINE_INLINE_TRACE_AFTER_DISPATCH() { |
| 36 CSSValueList::traceAfterDispatch(visitor); | 36 CSSValueList::traceAfterDispatch(visitor); |
| 37 } | 37 } |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 CSSGridAutoRepeatValue(CSSValueID id) | 40 CSSGridAutoRepeatValue(CSSValueID id) |
| 41 : CSSValueList(GridAutoRepeatClass, SpaceSeparator), m_autoRepeatID(id) { | 41 : CSSValueList(GridAutoRepeatClass, SpaceSeparator), m_autoRepeatID(id) { |
| 42 ASSERT(id == CSSValueAutoFill || id == CSSValueAutoFit); | 42 DCHECK(id == CSSValueAutoFill || id == CSSValueAutoFit); |
| 43 } | 43 } |
| 44 | 44 |
| 45 const CSSValueID m_autoRepeatID; | 45 const CSSValueID m_autoRepeatID; |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 DEFINE_CSS_VALUE_TYPE_CASTS(CSSGridAutoRepeatValue, isGridAutoRepeatValue()); | 48 DEFINE_CSS_VALUE_TYPE_CASTS(CSSGridAutoRepeatValue, isGridAutoRepeatValue()); |
| 49 | 49 |
| 50 } // namespace blink | 50 } // namespace blink |
| 51 | 51 |
| 52 #endif // CSSGridAutoRepeatValue_h | 52 #endif // CSSGridAutoRepeatValue_h |
| OLD | NEW |