| 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 "wtf/Allocator.h" | 10 #include "platform/wtf/Allocator.h" |
| 11 #include "wtf/Vector.h" | 11 #include "platform/wtf/Vector.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 CORE_EXPORT extern const CSSParserToken& g_static_eof_token; | 15 CORE_EXPORT extern const CSSParserToken& g_static_eof_token; |
| 16 | 16 |
| 17 // A CSSParserTokenRange is an iterator over a subrange of a vector of | 17 // A CSSParserTokenRange is an iterator over a subrange of a vector of |
| 18 // CSSParserTokens. Accessing outside of the range will return an endless stream | 18 // CSSParserTokens. Accessing outside of the range will return an endless stream |
| 19 // of EOF tokens. This class refers to half-open intervals [first, last). | 19 // of EOF tokens. This class refers to half-open intervals [first, last). |
| 20 class CORE_EXPORT CSSParserTokenRange { | 20 class CORE_EXPORT CSSParserTokenRange { |
| 21 DISALLOW_NEW(); | 21 DISALLOW_NEW(); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 CSSParserTokenRange(const CSSParserToken* first, const CSSParserToken* last) | 70 CSSParserTokenRange(const CSSParserToken* first, const CSSParserToken* last) |
| 71 : first_(first), last_(last) {} | 71 : first_(first), last_(last) {} |
| 72 | 72 |
| 73 const CSSParserToken* first_; | 73 const CSSParserToken* first_; |
| 74 const CSSParserToken* last_; | 74 const CSSParserToken* last_; |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } // namespace blink | 77 } // namespace blink |
| 78 | 78 |
| 79 #endif // CSSParserTokenRange_h | 79 #endif // CSSParserTokenRange_h |
| OLD | NEW |