| 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/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 Loading... |
| 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(); |
| 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 |
| OLD | NEW |