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

Side by Side 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, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698