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

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

Issue 2086283002: Convert CSSParserToken::valueEqualsIgnoringASCIICase to equalIgnoringASCIICase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 void convertToDimensionWithUnit(StringView); 89 void convertToDimensionWithUnit(StringView);
90 90
91 // Converts NumberToken to PercentageToken. 91 // Converts NumberToken to PercentageToken.
92 void convertToPercentage(); 92 void convertToPercentage();
93 93
94 CSSParserTokenType type() const { return static_cast<CSSParserTokenType>(m_t ype); } 94 CSSParserTokenType type() const { return static_cast<CSSParserTokenType>(m_t ype); }
95 StringView value() const 95 StringView value() const
96 { 96 {
97 return StringView(m_valueDataCharRaw, m_valueLength, m_valueIs8Bit); 97 return StringView(m_valueDataCharRaw, m_valueLength, m_valueIs8Bit);
98 } 98 }
99 // TODO(esprehn): Remove this method, callers should just use equalIgnoringA SCIICase directly.
100 bool valueEqualsIgnoringASCIICase(StringView match) const { return equalIgno ringASCIICase(value(), match); }
101 99
102 UChar delimiter() const; 100 UChar delimiter() const;
103 NumericSign numericSign() const; 101 NumericSign numericSign() const;
104 NumericValueType numericValueType() const; 102 NumericValueType numericValueType() const;
105 double numericValue() const; 103 double numericValue() const;
106 HashTokenType getHashTokenType() const { ASSERT(m_type == HashToken); return m_hashTokenType; } 104 HashTokenType getHashTokenType() const { ASSERT(m_type == HashToken); return m_hashTokenType; }
107 BlockType getBlockType() const { return static_cast<BlockType>(m_blockType); } 105 BlockType getBlockType() const { return static_cast<BlockType>(m_blockType); }
108 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); }
109 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; }
110 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; }
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 158
161 namespace WTF { 159 namespace WTF {
162 template <> 160 template <>
163 struct IsTriviallyMoveAssignable<blink::CSSParserToken> { 161 struct IsTriviallyMoveAssignable<blink::CSSParserToken> {
164 STATIC_ONLY(IsTriviallyMoveAssignable); 162 STATIC_ONLY(IsTriviallyMoveAssignable);
165 static const bool value = true; 163 static const bool value = true;
166 }; 164 };
167 } 165 }
168 166
169 #endif // CSSSParserToken_h 167 #endif // CSSSParserToken_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698