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

Unified Diff: Source/core/css/CSSVariableReferenceValue.h

Issue 1192983003: CSS Custom Properties (Variables) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove unnecessary enum 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/CSSVariableReferenceValue.h
diff --git a/Source/core/css/CSSVariableReferenceValue.h b/Source/core/css/CSSVariableReferenceValue.h
new file mode 100644
index 0000000000000000000000000000000000000000..acd402615ed431a8d93924952475c587b839018f
--- /dev/null
+++ b/Source/core/css/CSSVariableReferenceValue.h
@@ -0,0 +1,43 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CSSVariableReferenceValue_h
+#define CSSVariableReferenceValue_h
+
+#include "core/css/CSSValue.h"
+
+#include "wtf/text/AtomicString.h"
+
+namespace blink {
+
+class CSSVariableReferenceValue : public CSSValue {
alancutter (OOO until 2018) 2015/07/14 06:12:57 Unused class.
+public:
+ static PassRefPtrWillBeRawPtr<CSSVariableReferenceValue> create(const AtomicString& name, const AtomicString& value)
+ {
+ return adoptRefWillBeNoop(new CSSVariableReferenceValue(name, value));
+ }
+ const AtomicString& name() const { return m_name; }
+ const AtomicString& value() const { return m_value; }
+ bool equals(const CSSVariableReferenceValue& other) const { return m_name == other.m_name && m_value == other.m_value; }
+ void traceAfterDispatch(Visitor* visitor) { CSSValue::traceAfterDispatch(visitor); }
+private:
+ CSSVariableReferenceValue(const AtomicString& name, const AtomicString& value)
+ : CSSValue(VariableClass)
+ , m_name(name)
+ , m_value(value)
+ {
+ }
+
+ // Substring of stylesheet the tokens reference.
+ String m_string;
+ // Escape strings
+ Vector<String> m_stringPool;
+ Vector<CSSParserToken> m_tokens;
+};
+
+DEFINE_CSS_VALUE_TYPE_CASTS(CSSVariableReferenceValue, isVariableValue());
+
+} // namespace blink
+
+#endif // CSSVariableReferenceValue_h

Powered by Google App Engine
This is Rietveld 408576698