Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CSSVariableReferenceValue_h | |
| 6 #define CSSVariableReferenceValue_h | |
| 7 | |
| 8 #include "core/css/CSSValue.h" | |
| 9 | |
| 10 #include "wtf/text/AtomicString.h" | |
| 11 | |
| 12 namespace blink { | |
| 13 | |
| 14 class CSSVariableReferenceValue : public CSSValue { | |
|
alancutter (OOO until 2018)
2015/07/14 06:12:57
Unused class.
| |
| 15 public: | |
| 16 static PassRefPtrWillBeRawPtr<CSSVariableReferenceValue> create(const Atomic String& name, const AtomicString& value) | |
| 17 { | |
| 18 return adoptRefWillBeNoop(new CSSVariableReferenceValue(name, value)); | |
| 19 } | |
| 20 const AtomicString& name() const { return m_name; } | |
| 21 const AtomicString& value() const { return m_value; } | |
| 22 bool equals(const CSSVariableReferenceValue& other) const { return m_name == other.m_name && m_value == other.m_value; } | |
| 23 void traceAfterDispatch(Visitor* visitor) { CSSValue::traceAfterDispatch(vis itor); } | |
| 24 private: | |
| 25 CSSVariableReferenceValue(const AtomicString& name, const AtomicString& valu e) | |
| 26 : CSSValue(VariableClass) | |
| 27 , m_name(name) | |
| 28 , m_value(value) | |
| 29 { | |
| 30 } | |
| 31 | |
| 32 // Substring of stylesheet the tokens reference. | |
| 33 String m_string; | |
| 34 // Escape strings | |
| 35 Vector<String> m_stringPool; | |
| 36 Vector<CSSParserToken> m_tokens; | |
| 37 }; | |
| 38 | |
| 39 DEFINE_CSS_VALUE_TYPE_CASTS(CSSVariableReferenceValue, isVariableValue()); | |
| 40 | |
| 41 } // namespace blink | |
| 42 | |
| 43 #endif // CSSVariableReferenceValue_h | |
| OLD | NEW |