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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSGridAutoRepeatValue.h

Issue 2755493004: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in core/css/ (Closed)
Patch Set: All windows error are Resolved now. 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698