OLD | NEW |
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 "core/css/parser/CSSParserString.h" | 10 #include "core/css/parser/CSSParserString.h" |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 ret.initRaw(m_valueDataCharRaw, m_valueLength, m_valueIs8Bit); | 128 ret.initRaw(m_valueDataCharRaw, m_valueLength, m_valueIs8Bit); |
129 return ret; | 129 return ret; |
130 } | 130 } |
131 template<unsigned matchLength> | 131 template<unsigned matchLength> |
132 bool valueEqualsIgnoringASCIICase(const char (&match)[matchLength]) const {
return value().equalIgnoringASCIICase<matchLength>(match); } | 132 bool valueEqualsIgnoringASCIICase(const char (&match)[matchLength]) const {
return value().equalIgnoringASCIICase<matchLength>(match); } |
133 | 133 |
134 UChar delimiter() const; | 134 UChar delimiter() const; |
135 NumericSign numericSign() const; | 135 NumericSign numericSign() const; |
136 NumericValueType numericValueType() const; | 136 NumericValueType numericValueType() const; |
137 double numericValue() const; | 137 double numericValue() const; |
138 HashTokenType hashTokenType() const { ASSERT(m_type == HashToken); return m_
hashTokenType; } | 138 HashTokenType getHashTokenType() const { ASSERT(m_type == HashToken); return
m_hashTokenType; } |
139 BlockType blockType() const { return static_cast<BlockType>(m_blockType); } | 139 BlockType getBlockType() const { return static_cast<BlockType>(m_blockType);
} |
140 CSSPrimitiveValue::UnitType unitType() const { return static_cast<CSSPrimiti
veValue::UnitType>(m_unit); } | 140 CSSPrimitiveValue::UnitType unitType() const { return static_cast<CSSPrimiti
veValue::UnitType>(m_unit); } |
141 UChar32 unicodeRangeStart() const { ASSERT(m_type == UnicodeRangeToken); ret
urn m_unicodeRange.start; } | 141 UChar32 unicodeRangeStart() const { ASSERT(m_type == UnicodeRangeToken); ret
urn m_unicodeRange.start; } |
142 UChar32 unicodeRangeEnd() const { ASSERT(m_type == UnicodeRangeToken); retur
n m_unicodeRange.end; } | 142 UChar32 unicodeRangeEnd() const { ASSERT(m_type == UnicodeRangeToken); retur
n m_unicodeRange.end; } |
143 CSSValueID id() const; | 143 CSSValueID id() const; |
144 CSSValueID functionId() const; | 144 CSSValueID functionId() const; |
145 | 145 |
146 bool hasStringBacking() const; | 146 bool hasStringBacking() const; |
147 | 147 |
148 CSSPropertyID parseAsUnresolvedCSSPropertyID() const; | 148 CSSPropertyID parseAsUnresolvedCSSPropertyID() const; |
149 | 149 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 | 187 |
188 namespace WTF { | 188 namespace WTF { |
189 template <> | 189 template <> |
190 struct IsTriviallyMoveAssignable<blink::CSSParserToken> { | 190 struct IsTriviallyMoveAssignable<blink::CSSParserToken> { |
191 STATIC_ONLY(IsTriviallyMoveAssignable); | 191 STATIC_ONLY(IsTriviallyMoveAssignable); |
192 static const bool value = true; | 192 static const bool value = true; |
193 }; | 193 }; |
194 } | 194 } |
195 | 195 |
196 #endif // CSSSParserToken_h | 196 #endif // CSSSParserToken_h |
OLD | NEW |