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

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

Issue 1096963002: Make UseCounters work on aliased properties (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « Source/core/css/parser/CSSParserImpl.cpp ('k') | Source/core/css/parser/CSSParserToken.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "core/css/parser/CSSParserValues.h" 10 #include "core/css/parser/CSSParserValues.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/core/css/parser/CSSParserImpl.cpp ('k') | Source/core/css/parser/CSSParserToken.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698