Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(613)

Unified Diff: Source/core/css/parser/CSSParserTokenRange.h

Issue 1192983003: CSS Custom Properties (Variables) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: with missing files Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698