| Index: Source/core/css/parser/CSSParserTokenRange.h
|
| diff --git a/Source/core/css/parser/CSSParserTokenRange.h b/Source/core/css/parser/CSSParserTokenRange.h
|
| index 6ad12750289e659b15e3a7719fe57fa7690a134d..48c63b861f9235cc39ff62384cf7c1eb48c76705 100644
|
| --- a/Source/core/css/parser/CSSParserTokenRange.h
|
| +++ b/Source/core/css/parser/CSSParserTokenRange.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #include "core/CoreExport.h"
|
| #include "core/css/parser/CSSParserToken.h"
|
| +#include "core/css/parser/CSSTokenizer.h"
|
| #include "wtf/Vector.h"
|
|
|
| namespace blink {
|
| @@ -18,9 +19,10 @@ CORE_EXPORT extern const CSSParserToken& staticEOFToken;
|
| // This class refers to half-open intervals [first, last).
|
| class CORE_EXPORT CSSParserTokenRange {
|
| public:
|
| - CSSParserTokenRange(const Vector<CSSParserToken>& vector)
|
| + CSSParserTokenRange(const Vector<CSSParserToken>& vector, const CSSTokenizer::Scope* scope)
|
| : m_first(vector.begin())
|
| , m_last(vector.end())
|
| + , m_scope(scope)
|
| {
|
| }
|
|
|
| @@ -64,19 +66,23 @@ public:
|
|
|
| String serialize() const;
|
|
|
| + const CSSTokenizer::Scope* scope() const { return m_scope; }
|
| +
|
| // This is only for the inspector integration
|
| const CSSParserToken* begin() const { return m_first; }
|
|
|
| static void initStaticEOFToken();
|
|
|
| private:
|
| - CSSParserTokenRange(const CSSParserToken* first, const CSSParserToken* last)
|
| + CSSParserTokenRange(const CSSParserToken* first, const CSSParserToken* last, const CSSTokenizer::Scope* scope)
|
| : m_first(first)
|
| , m_last(last)
|
| + , m_scope(scope)
|
| { }
|
|
|
| const CSSParserToken* m_first;
|
| const CSSParserToken* m_last;
|
| + const CSSTokenizer::Scope* m_scope;
|
| };
|
|
|
| } // namespace
|
|
|