| 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 #include "config.h" | 5 #include "config.h" |
| 6 #include "core/css/parser/CSSParserTokenRange.h" | 6 #include "core/css/parser/CSSParserTokenRange.h" |
| 7 | 7 |
| 8 #include "wtf/StaticConstructors.h" | 8 #include "wtf/StaticConstructors.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 if (token.blockType() == CSSParserToken::BlockStart) | 36 if (token.blockType() == CSSParserToken::BlockStart) |
| 37 nestingLevel++; | 37 nestingLevel++; |
| 38 else if (token.blockType() == CSSParserToken::BlockEnd) | 38 else if (token.blockType() == CSSParserToken::BlockEnd) |
| 39 nestingLevel--; | 39 nestingLevel--; |
| 40 } while (nestingLevel && m_first < m_last); | 40 } while (nestingLevel && m_first < m_last); |
| 41 } | 41 } |
| 42 | 42 |
| 43 void CSSParserTokenRange::consumeWhitespaceAndComments() | 43 void CSSParserTokenRange::consumeWhitespaceAndComments() |
| 44 { | 44 { |
| 45 while (peek().type() == WhitespaceToken || peek().type() == CommentToken) | 45 while (peek().type() == WhitespaceToken || peek().type() == CommentToken) |
| 46 consume(); | 46 ++m_first; |
| 47 } | 47 } |
| 48 | 48 |
| 49 } // namespace blink | 49 } // namespace blink |
| OLD | NEW |