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 "wtf/Allocator.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 void consumeComponentValue(); | 59 void consumeComponentValue(); |
60 | 60 |
61 void consumeWhitespace() | 61 void consumeWhitespace() |
62 { | 62 { |
63 while (peek().type() == WhitespaceToken) | 63 while (peek().type() == WhitespaceToken) |
64 ++m_first; | 64 ++m_first; |
65 } | 65 } |
66 | 66 |
67 String serialize() const; | 67 String serialize() const; |
68 | 68 |
69 // This is only for the inspector integration | |
70 const CSSParserToken* begin() const { return m_first; } | 69 const CSSParserToken* begin() const { return m_first; } |
71 | 70 |
72 static void initStaticEOFToken(); | 71 static void initStaticEOFToken(); |
73 | 72 |
74 private: | 73 private: |
75 CSSParserTokenRange(const CSSParserToken* first, const CSSParserToken* last) | 74 CSSParserTokenRange(const CSSParserToken* first, const CSSParserToken* last) |
76 : m_first(first) | 75 : m_first(first) |
77 , m_last(last) | 76 , m_last(last) |
78 { } | 77 { } |
79 | 78 |
80 const CSSParserToken* m_first; | 79 const CSSParserToken* m_first; |
81 const CSSParserToken* m_last; | 80 const CSSParserToken* m_last; |
82 }; | 81 }; |
83 | 82 |
84 } // namespace | 83 } // namespace |
85 | 84 |
86 #endif // CSSParserTokenRange_h | 85 #endif // CSSParserTokenRange_h |
OLD | NEW |