Index: Source/core/css/parser/CSSParserTokenRange.h |
diff --git a/Source/core/css/parser/CSSParserTokenRange.h b/Source/core/css/parser/CSSParserTokenRange.h |
index 3d0f00232a840a989e6a3552e0ee83f9b4ea1b62..0f38f7c0882903848283bbb97652e7c263d677b8 100644 |
--- a/Source/core/css/parser/CSSParserTokenRange.h |
+++ b/Source/core/css/parser/CSSParserTokenRange.h |
@@ -43,6 +43,21 @@ public: |
return *m_first++; |
} |
+ const CSSParserToken& consumeIncludingComments() |
+ { |
+ const CSSParserToken& result = consume(); |
+ while (peek().type() == CommentToken) |
+ ++m_first; |
+ return result; |
+ } |
+ |
+ const CSSParserToken& consumeIncludingWhitespaceAndComments() |
+ { |
+ const CSSParserToken& result = consume(); |
+ consumeWhitespaceAndComments(); |
+ return result; |
+ } |
+ |
void consumeComponentValue(); |
void consumeWhitespaceAndComments(); |