| 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/CSSParserValues.h" | 10 #include "core/css/parser/CSSParserValues.h" |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 UChar delimiter() const; | 94 UChar delimiter() const; |
| 95 NumericSign numericSign() const; | 95 NumericSign numericSign() const; |
| 96 NumericValueType numericValueType() const; | 96 NumericValueType numericValueType() const; |
| 97 double numericValue() const; | 97 double numericValue() const; |
| 98 HashTokenType hashTokenType() const { ASSERT(m_type == HashToken); return m_
hashTokenType; } | 98 HashTokenType hashTokenType() const { ASSERT(m_type == HashToken); return m_
hashTokenType; } |
| 99 BlockType blockType() const { return static_cast<BlockType>(m_blockType); } | 99 BlockType blockType() const { return static_cast<BlockType>(m_blockType); } |
| 100 CSSPrimitiveValue::UnitType unitType() const { return static_cast<CSSPrimiti
veValue::UnitType>(m_unit); } | 100 CSSPrimitiveValue::UnitType unitType() const { return static_cast<CSSPrimiti
veValue::UnitType>(m_unit); } |
| 101 UChar32 unicodeRangeStart() const { ASSERT(m_type == UnicodeRangeToken); ret
urn m_unicodeRange.start; } | 101 UChar32 unicodeRangeStart() const { ASSERT(m_type == UnicodeRangeToken); ret
urn m_unicodeRange.start; } |
| 102 UChar32 unicodeRangeEnd() const { ASSERT(m_type == UnicodeRangeToken); retur
n m_unicodeRange.end; } | 102 UChar32 unicodeRangeEnd() const { ASSERT(m_type == UnicodeRangeToken); retur
n m_unicodeRange.end; } |
| 103 | 103 |
| 104 CSSPropertyID parseAsCSSPropertyID() const; | 104 CSSPropertyID parseAsUnresolvedCSSPropertyID() const; |
| 105 | 105 |
| 106 void serialize(StringBuilder&) const; | 106 void serialize(StringBuilder&) const; |
| 107 | 107 |
| 108 private: | 108 private: |
| 109 unsigned m_type : 6; // CSSParserTokenType | 109 unsigned m_type : 6; // CSSParserTokenType |
| 110 unsigned m_blockType : 2; // BlockType | 110 unsigned m_blockType : 2; // BlockType |
| 111 unsigned m_numericValueType : 1; // NumericValueType | 111 unsigned m_numericValueType : 1; // NumericValueType |
| 112 unsigned m_numericSign : 2; // NumericSign | 112 unsigned m_numericSign : 2; // NumericSign |
| 113 unsigned m_unit : 7; // CSSPrimitiveValue::UnitType | 113 unsigned m_unit : 7; // CSSPrimitiveValue::UnitType |
| 114 | 114 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 129 } // namespace blink | 129 } // namespace blink |
| 130 | 130 |
| 131 namespace WTF { | 131 namespace WTF { |
| 132 template <> | 132 template <> |
| 133 struct IsTriviallyMoveAssignable<blink::CSSParserToken> { | 133 struct IsTriviallyMoveAssignable<blink::CSSParserToken> { |
| 134 static const bool value = true; | 134 static const bool value = true; |
| 135 }; | 135 }; |
| 136 } | 136 } |
| 137 | 137 |
| 138 #endif // CSSSParserToken_h | 138 #endif // CSSSParserToken_h |
| OLD | NEW |