Chromium Code Reviews| Index: third_party/WebKit/Source/core/css/parser/CSSParserTokenRange.h |
| diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserTokenRange.h b/third_party/WebKit/Source/core/css/parser/CSSParserTokenRange.h |
| index 707a1ac6a49b1e1e4b0cdb311e529e63c6993289..afb57e71218960f206bd3294ceb74ffc95417804 100644 |
| --- a/third_party/WebKit/Source/core/css/parser/CSSParserTokenRange.h |
| +++ b/third_party/WebKit/Source/core/css/parser/CSSParserTokenRange.h |
| @@ -20,9 +20,9 @@ CORE_EXPORT extern const CSSParserToken& staticEOFToken; |
| class CORE_EXPORT CSSParserTokenRange { |
| DISALLOW_NEW(); |
| public: |
| - CSSParserTokenRange(const Vector<CSSParserToken>& vector) |
|
esprehn
2016/04/22 23:30:57
We could also use a template I suppose to allow in
Timothy Loh
2016/04/27 06:52:05
IIRC I set it up so that once you have a CSSParser
|
| - : m_first(vector.begin()) |
| - , m_last(vector.end()) |
| + CSSParserTokenRange(const CSSParserToken* first, const CSSParserToken* last) |
| + : m_first(first) |
| + , m_last(last) |
| { |
| } |
| @@ -71,11 +71,6 @@ public: |
| static void initStaticEOFToken(); |
| private: |
| - CSSParserTokenRange(const CSSParserToken* first, const CSSParserToken* last) |
| - : m_first(first) |
| - , m_last(last) |
| - { } |
| - |
| const CSSParserToken* m_first; |
| const CSSParserToken* m_last; |
| }; |