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

Side by Side Diff: third_party/WebKit/Source/core/css/parser/CSSTokenizer.cpp

Issue 2329463004: ABANDONED CL: Changes needed to make things compile after running rewrite_to_chrome_style tool. (Closed)
Patch Set: More fixes - things build fine at this point. Created 3 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
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 #include "core/css/parser/CSSTokenizer.h" 5 #include "core/css/parser/CSSTokenizer.h"
6 6
7 namespace blink { 7 namespace blink {
8 #include "core/CSSTokenizerCodepoints.cpp" 8 #include "core/CSSTokenizerCodepoints.cpp"
9 } 9 }
10 10
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 } 203 }
204 204
205 CSSParserToken CSSTokenizer::colon(UChar cc) { 205 CSSParserToken CSSTokenizer::colon(UChar cc) {
206 return CSSParserToken(ColonToken); 206 return CSSParserToken(ColonToken);
207 } 207 }
208 208
209 CSSParserToken CSSTokenizer::semiColon(UChar cc) { 209 CSSParserToken CSSTokenizer::semiColon(UChar cc) {
210 return CSSParserToken(SemicolonToken); 210 return CSSParserToken(SemicolonToken);
211 } 211 }
212 212
213 /* DO NOT SUBMIT - Merge conflict resolution marker.
214 * Please spell |Hash| below (not |GetHash|). */
213 CSSParserToken CSSTokenizer::hash(UChar cc) { 215 CSSParserToken CSSTokenizer::hash(UChar cc) {
214 UChar nextChar = m_input.peekWithoutReplacement(0); 216 UChar nextChar = m_input.peekWithoutReplacement(0);
215 if (isNameCodePoint(nextChar) || 217 if (isNameCodePoint(nextChar) ||
216 twoCharsAreValidEscape(nextChar, m_input.peekWithoutReplacement(1))) { 218 twoCharsAreValidEscape(nextChar, m_input.peekWithoutReplacement(1))) {
217 HashTokenType type = 219 HashTokenType type =
218 nextCharsAreIdentifier() ? HashTokenId : HashTokenUnrestricted; 220 nextCharsAreIdentifier() ? HashTokenId : HashTokenUnrestricted;
219 return CSSParserToken(type, consumeName()); 221 return CSSParserToken(type, consumeName());
220 } 222 }
221 223
222 return CSSParserToken(DelimiterToken, cc); 224 return CSSParserToken(DelimiterToken, cc);
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 reconsume(first); 677 reconsume(first);
676 return areIdentifier; 678 return areIdentifier;
677 } 679 }
678 680
679 StringView CSSTokenizer::registerString(const String& string) { 681 StringView CSSTokenizer::registerString(const String& string) {
680 m_stringPool.push_back(string); 682 m_stringPool.push_back(string);
681 return string; 683 return string;
682 } 684 }
683 685
684 } // namespace blink 686 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698