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

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

Issue 1406993009: Revert "CSS Custom Properties (Variables)" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 "core/css/parser/CSSParserString.h" 10 #include "core/css/parser/CSSParserString.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 NumericValueType numericValueType() const; 102 NumericValueType numericValueType() const;
103 double numericValue() const; 103 double numericValue() const;
104 HashTokenType hashTokenType() const { ASSERT(m_type == HashToken); return m_ hashTokenType; } 104 HashTokenType hashTokenType() const { ASSERT(m_type == HashToken); return m_ hashTokenType; }
105 BlockType blockType() const { return static_cast<BlockType>(m_blockType); } 105 BlockType blockType() const { return static_cast<BlockType>(m_blockType); }
106 CSSPrimitiveValue::UnitType unitType() const { return static_cast<CSSPrimiti veValue::UnitType>(m_unit); } 106 CSSPrimitiveValue::UnitType unitType() const { return static_cast<CSSPrimiti veValue::UnitType>(m_unit); }
107 UChar32 unicodeRangeStart() const { ASSERT(m_type == UnicodeRangeToken); ret urn m_unicodeRange.start; } 107 UChar32 unicodeRangeStart() const { ASSERT(m_type == UnicodeRangeToken); ret urn m_unicodeRange.start; }
108 UChar32 unicodeRangeEnd() const { ASSERT(m_type == UnicodeRangeToken); retur n m_unicodeRange.end; } 108 UChar32 unicodeRangeEnd() const { ASSERT(m_type == UnicodeRangeToken); retur n m_unicodeRange.end; }
109 CSSValueID id() const; 109 CSSValueID id() const;
110 CSSValueID functionId() const; 110 CSSValueID functionId() const;
111 111
112 bool hasStringBacking() const;
113
114 CSSPropertyID parseAsUnresolvedCSSPropertyID() const; 112 CSSPropertyID parseAsUnresolvedCSSPropertyID() const;
115 113
116 void serialize(StringBuilder&) const; 114 void serialize(StringBuilder&) const;
117 115
118 CSSParserToken copyWithUpdatedString(const CSSParserString&) const;
119
120 private: 116 private:
121 void initValueFromCSSParserString(const CSSParserString& value) 117 void initValueFromCSSParserString(const CSSParserString& value)
122 { 118 {
123 m_valueLength = value.m_length; 119 m_valueLength = value.m_length;
124 m_valueIs8Bit = value.m_is8Bit; 120 m_valueIs8Bit = value.m_is8Bit;
125 m_valueDataCharRaw = value.m_data.charactersRaw; 121 m_valueDataCharRaw = value.m_data.charactersRaw;
126 } 122 }
127 unsigned m_type : 6; // CSSParserTokenType 123 unsigned m_type : 6; // CSSParserTokenType
128 unsigned m_blockType : 2; // BlockType 124 unsigned m_blockType : 2; // BlockType
129 unsigned m_numericValueType : 1; // NumericValueType 125 unsigned m_numericValueType : 1; // NumericValueType
(...skipping 23 matching lines...) Expand all
153 149
154 namespace WTF { 150 namespace WTF {
155 template <> 151 template <>
156 struct IsTriviallyMoveAssignable<blink::CSSParserToken> { 152 struct IsTriviallyMoveAssignable<blink::CSSParserToken> {
157 STATIC_ONLY(IsTriviallyMoveAssignable); 153 STATIC_ONLY(IsTriviallyMoveAssignable);
158 static const bool value = true; 154 static const bool value = true;
159 }; 155 };
160 } 156 }
161 157
162 #endif // CSSSParserToken_h 158 #endif // CSSSParserToken_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698