OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CSSCustomIdentValue_h | 5 #ifndef CSSCustomIdentValue_h |
6 #define CSSCustomIdentValue_h | 6 #define CSSCustomIdentValue_h |
7 | 7 |
8 #include "core/CSSPropertyNames.h" | 8 #include "core/CSSPropertyNames.h" |
9 #include "core/css/CSSValue.h" | 9 #include "core/css/CSSValue.h" |
10 #include "wtf/PassRefPtr.h" | |
11 #include "wtf/RefCounted.h" | |
12 | 10 |
13 namespace blink { | 11 namespace blink { |
14 | 12 |
15 class CSSCustomIdentValue : public CSSValue { | 13 class CSSCustomIdentValue : public CSSValue { |
16 public: | 14 public: |
17 static CSSCustomIdentValue* create(const String& str) | 15 static CSSCustomIdentValue* create(const String& str) |
18 { | 16 { |
19 return new CSSCustomIdentValue(str); | 17 return new CSSCustomIdentValue(str); |
20 } | 18 } |
21 | 19 |
(...skipping 23 matching lines...) Expand all Loading... |
45 // TODO(sashab): Change this to an AtomicString. | 43 // TODO(sashab): Change this to an AtomicString. |
46 String m_string; | 44 String m_string; |
47 CSSPropertyID m_propertyId; | 45 CSSPropertyID m_propertyId; |
48 }; | 46 }; |
49 | 47 |
50 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCustomIdentValue, isCustomIdentValue()); | 48 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCustomIdentValue, isCustomIdentValue()); |
51 | 49 |
52 } // namespace blink | 50 } // namespace blink |
53 | 51 |
54 #endif // CSSCustomIdentValue_h | 52 #endif // CSSCustomIdentValue_h |
OLD | NEW |