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

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

Issue 799003003: CSS Parser: Implement parseRule (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@attoken
Patch Set: 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
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 CSSParserTokenRange_h 5 #ifndef CSSParserTokenRange_h
6 #define CSSParserTokenRange_h 6 #define CSSParserTokenRange_h
7 7
8 #include "core/css/parser/CSSParserToken.h" 8 #include "core/css/parser/CSSParserToken.h"
9 #include "wtf/Vector.h" 9 #include "wtf/Vector.h"
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 return result; 51 return result;
52 } 52 }
53 53
54 const CSSParserToken& consumeIncludingWhitespaceAndComments() 54 const CSSParserToken& consumeIncludingWhitespaceAndComments()
55 { 55 {
56 const CSSParserToken& result = consume(); 56 const CSSParserToken& result = consume();
57 consumeWhitespaceAndComments(); 57 consumeWhitespaceAndComments();
58 return result; 58 return result;
59 } 59 }
60 60
61 // The returned range doesn't include the brackets
62 CSSParserTokenRange consumeBlock();
Timothy Loh 2014/12/16 00:01:20 This is almost the same as consumeComponentValue,
63
61 void consumeComponentValue(); 64 void consumeComponentValue();
62 void consumeWhitespaceAndComments(); 65 void consumeWhitespaceAndComments();
63 66
64 static void initStaticEOFToken(); 67 static void initStaticEOFToken();
65 68
66 private: 69 private:
67 CSSParserTokenRange(const CSSParserToken* first, const CSSParserToken* last) 70 CSSParserTokenRange(const CSSParserToken* first, const CSSParserToken* last)
68 : m_first(first) 71 : m_first(first)
69 , m_last(last) 72 , m_last(last)
70 { } 73 { }
71 74
72 const CSSParserToken* m_first; 75 const CSSParserToken* m_first;
73 const CSSParserToken* m_last; 76 const CSSParserToken* m_last;
74 }; 77 };
75 78
76 } // namespace 79 } // namespace
77 80
78 #endif // CSSParserTokenRange_h 81 #endif // CSSParserTokenRange_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698