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 |