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

Side by Side Diff: Source/core/css/parser/CSSParserTokenRange.cpp

Issue 790593004: CSS Parser: Implement selector parsing [1/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: address comments Created 6 years 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/CSSParserTokenRange.h ('k') | Source/core/css/parser/CSSParserValues.h » ('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 #include "config.h" 5 #include "config.h"
6 #include "core/css/parser/CSSParserTokenRange.h" 6 #include "core/css/parser/CSSParserTokenRange.h"
7 7
8 #include "wtf/StaticConstructors.h" 8 #include "wtf/StaticConstructors.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 25 matching lines...) Expand all
36 if (token.blockType() == CSSParserToken::BlockStart) 36 if (token.blockType() == CSSParserToken::BlockStart)
37 nestingLevel++; 37 nestingLevel++;
38 else if (token.blockType() == CSSParserToken::BlockEnd) 38 else if (token.blockType() == CSSParserToken::BlockEnd)
39 nestingLevel--; 39 nestingLevel--;
40 } while (nestingLevel && m_first < m_last); 40 } while (nestingLevel && m_first < m_last);
41 } 41 }
42 42
43 void CSSParserTokenRange::consumeWhitespaceAndComments() 43 void CSSParserTokenRange::consumeWhitespaceAndComments()
44 { 44 {
45 while (peek().type() == WhitespaceToken || peek().type() == CommentToken) 45 while (peek().type() == WhitespaceToken || peek().type() == CommentToken)
46 consume(); 46 ++m_first;
47 } 47 }
48 48
49 } // namespace blink 49 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/parser/CSSParserTokenRange.h ('k') | Source/core/css/parser/CSSParserValues.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698