| 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/text/AtomicString.h" | 10 #include "platform/wtf/text/AtomicString.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class CSSCustomIdentValue : public CSSValue { | 14 class CSSCustomIdentValue : public CSSValue { |
| 15 public: | 15 public: |
| 16 static CSSCustomIdentValue* Create(const AtomicString& str) { | 16 static CSSCustomIdentValue* Create(const AtomicString& str) { |
| 17 return new CSSCustomIdentValue(str); | 17 return new CSSCustomIdentValue(str); |
| 18 } | 18 } |
| 19 | 19 |
| 20 // TODO(sashab, timloh): Remove this and lazily parse the CSSPropertyID in | 20 // TODO(sashab, timloh): Remove this and lazily parse the CSSPropertyID in |
| (...skipping 27 matching lines...) Expand all Loading... |
| 48 | 48 |
| 49 AtomicString string_; | 49 AtomicString string_; |
| 50 CSSPropertyID property_id_; | 50 CSSPropertyID property_id_; |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCustomIdentValue, IsCustomIdentValue()); | 53 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCustomIdentValue, IsCustomIdentValue()); |
| 54 | 54 |
| 55 } // namespace blink | 55 } // namespace blink |
| 56 | 56 |
| 57 #endif // CSSCustomIdentValue_h | 57 #endif // CSSCustomIdentValue_h |
| OLD | NEW |