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

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

Issue 2755493004: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in core/css/ (Closed)
Patch Set: Fixed the Windows Failure 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CSSParserToken_h 5 #ifndef CSSParserToken_h
6 #define CSSParserToken_h 6 #define CSSParserToken_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/css/CSSPrimitiveValue.h" 9 #include "core/css/CSSPrimitiveValue.h"
10 #include "wtf/Allocator.h" 10 #include "wtf/Allocator.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 m_valueLength); 108 m_valueLength);
109 return StringView(reinterpret_cast<const UChar*>(m_valueDataCharRaw), 109 return StringView(reinterpret_cast<const UChar*>(m_valueDataCharRaw),
110 m_valueLength); 110 m_valueLength);
111 } 111 }
112 112
113 UChar delimiter() const; 113 UChar delimiter() const;
114 NumericSign numericSign() const; 114 NumericSign numericSign() const;
115 NumericValueType numericValueType() const; 115 NumericValueType numericValueType() const;
116 double numericValue() const; 116 double numericValue() const;
117 HashTokenType getHashTokenType() const { 117 HashTokenType getHashTokenType() const {
118 ASSERT(m_type == HashToken); 118 DCHECK_EQ(m_type, HashToken);
tkent 2017/03/31 15:59:55 This line caused a build failure. https://luci-lo
119 return m_hashTokenType; 119 return m_hashTokenType;
120 } 120 }
121 BlockType getBlockType() const { return static_cast<BlockType>(m_blockType); } 121 BlockType getBlockType() const { return static_cast<BlockType>(m_blockType); }
122 CSSPrimitiveValue::UnitType unitType() const { 122 CSSPrimitiveValue::UnitType unitType() const {
123 return static_cast<CSSPrimitiveValue::UnitType>(m_unit); 123 return static_cast<CSSPrimitiveValue::UnitType>(m_unit);
124 } 124 }
125 UChar32 unicodeRangeStart() const { 125 UChar32 unicodeRangeStart() const {
126 ASSERT(m_type == UnicodeRangeToken); 126 DCHECK_EQ(m_type, UnicodeRangeToken);
127 return m_unicodeRange.start; 127 return m_unicodeRange.start;
128 } 128 }
129 UChar32 unicodeRangeEnd() const { 129 UChar32 unicodeRangeEnd() const {
130 ASSERT(m_type == UnicodeRangeToken); 130 DCHECK_EQ(m_type, UnicodeRangeToken);
131 return m_unicodeRange.end; 131 return m_unicodeRange.end;
132 } 132 }
133 CSSValueID id() const; 133 CSSValueID id() const;
134 CSSValueID functionId() const; 134 CSSValueID functionId() const;
135 135
136 bool hasStringBacking() const; 136 bool hasStringBacking() const;
137 137
138 CSSPropertyID parseAsUnresolvedCSSPropertyID() const; 138 CSSPropertyID parseAsUnresolvedCSSPropertyID() const;
139 139
140 void serialize(StringBuilder&) const; 140 void serialize(StringBuilder&) const;
(...skipping 29 matching lines...) Expand all
170 struct { 170 struct {
171 UChar32 start; 171 UChar32 start;
172 UChar32 end; 172 UChar32 end;
173 } m_unicodeRange; 173 } m_unicodeRange;
174 }; 174 };
175 }; 175 };
176 176
177 } // namespace blink 177 } // namespace blink
178 178
179 #endif // CSSSParserToken_h 179 #endif // CSSSParserToken_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698