Index: third_party/WebKit/Source/core/css/parser/CSSParser.cpp |
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParser.cpp b/third_party/WebKit/Source/core/css/parser/CSSParser.cpp |
index 2c92c9655cfced9be696aeeb8beb8fe40ea68f1c..413bbf7eb1e3a0fcc67b193d840e51f3255527e7 100644 |
--- a/third_party/WebKit/Source/core/css/parser/CSSParser.cpp |
+++ b/third_party/WebKit/Source/core/css/parser/CSSParser.cpp |
@@ -40,11 +40,7 @@ CSSSelectorList CSSParser::parseSelector(const CSSParserContext& context, StyleS |
CSSSelectorList CSSParser::parsePageSelector(const CSSParserContext& context, StyleSheetContents* styleSheetContents, const String& selector) |
{ |
CSSTokenizer::Scope scope(selector); |
- CSSParserTokenRange range = scope.tokenRange(); |
- const CSSParserToken* preludeStart = &range.peek(); |
- while (!range.atEnd() && range.peek().type() != LeftBraceToken && range.peek().type() != SemicolonToken) |
- range.consumeComponentValue(); |
- return CSSParserImpl::parsePageSelector(range.makeSubRange(preludeStart, &range.peek()), styleSheetContents); |
+ return CSSParserImpl::parsePageSelector(scope.tokenRange(), styleSheetContents); |
} |
PassRefPtrWillBeRawPtr<StyleRuleBase> CSSParser::parseRule(const CSSParserContext& context, StyleSheetContents* styleSheet, const String& rule) |