OLD | NEW |
---|---|
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/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/css/parser/CSSParserToken.h" | 9 #include "core/css/parser/CSSParserToken.h" |
10 #include "core/css/parser/CSSTokenizer.h" | |
Timothy Loh
2015/07/23 08:11:47
not needed?
| |
10 #include "wtf/Vector.h" | 11 #include "wtf/Vector.h" |
11 | 12 |
12 namespace blink { | 13 namespace blink { |
13 | 14 |
14 CORE_EXPORT extern const CSSParserToken& staticEOFToken; | 15 CORE_EXPORT extern const CSSParserToken& staticEOFToken; |
15 | 16 |
16 // A CSSParserTokenRange is an iterator over a subrange of a vector of CSSParser Tokens. | 17 // A CSSParserTokenRange is an iterator over a subrange of a vector of CSSParser Tokens. |
17 // Accessing outside of the range will return an endless stream of EOF tokens. | 18 // Accessing outside of the range will return an endless stream of EOF tokens. |
18 // This class refers to half-open intervals [first, last). | 19 // This class refers to half-open intervals [first, last). |
19 class CORE_EXPORT CSSParserTokenRange { | 20 class CORE_EXPORT CSSParserTokenRange { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
75 , m_last(last) | 76 , m_last(last) |
76 { } | 77 { } |
77 | 78 |
78 const CSSParserToken* m_first; | 79 const CSSParserToken* m_first; |
79 const CSSParserToken* m_last; | 80 const CSSParserToken* m_last; |
80 }; | 81 }; |
81 | 82 |
82 } // namespace | 83 } // namespace |
83 | 84 |
84 #endif // CSSParserTokenRange_h | 85 #endif // CSSParserTokenRange_h |
OLD | NEW |