| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 CSSIdentifierValue_h | 5 #ifndef CSSIdentifierValue_h |
| 6 #define CSSIdentifierValue_h | 6 #define CSSIdentifierValue_h |
| 7 | 7 |
| 8 #include "core/CSSValueKeywords.h" | 8 #include "core/CSSValueKeywords.h" |
| 9 #include "core/css/CSSValue.h" | 9 #include "core/css/CSSValue.h" |
| 10 #include "core/css/CSSValueIDMappings.h" | 10 #include "core/css/CSSValueIDMappings.h" |
| 11 #include "wtf/TypeTraits.h" | 11 #include "platform/wtf/TypeTraits.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 // CSSIdentifierValue stores CSS value keywords, e.g. 'none', 'auto', | 15 // CSSIdentifierValue stores CSS value keywords, e.g. 'none', 'auto', |
| 16 // 'lower-roman'. | 16 // 'lower-roman'. |
| 17 // TODO(sashab): Rename this class to CSSKeywordValue once it no longer | 17 // TODO(sashab): Rename this class to CSSKeywordValue once it no longer |
| 18 // conflicts with CSSOM's CSSKeywordValue class. | 18 // conflicts with CSSOM's CSSKeywordValue class. |
| 19 class CORE_EXPORT CSSIdentifierValue : public CSSValue { | 19 class CORE_EXPORT CSSIdentifierValue : public CSSValue { |
| 20 public: | 20 public: |
| 21 static CSSIdentifierValue* Create(CSSValueID); | 21 static CSSIdentifierValue* Create(CSSValueID); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 CSSIdentifierValue(const Length&); | 62 CSSIdentifierValue(const Length&); |
| 63 | 63 |
| 64 CSSValueID value_id_; | 64 CSSValueID value_id_; |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 DEFINE_CSS_VALUE_TYPE_CASTS(CSSIdentifierValue, IsIdentifierValue()); | 67 DEFINE_CSS_VALUE_TYPE_CASTS(CSSIdentifierValue, IsIdentifierValue()); |
| 68 | 68 |
| 69 } // namespace blink | 69 } // namespace blink |
| 70 | 70 |
| 71 #endif // CSSIdentifierValue_h | 71 #endif // CSSIdentifierValue_h |
| OLD | NEW |