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 CSSSyntaxDescriptor_h | 5 #ifndef CSSSyntaxDescriptor_h |
6 #define CSSSyntaxDescriptor_h | 6 #define CSSSyntaxDescriptor_h |
7 | 7 |
| 8 #include "core/animation/InterpolationTypesMap.h" |
8 #include "core/css/parser/CSSParserTokenRange.h" | 9 #include "core/css/parser/CSSParserTokenRange.h" |
9 | 10 |
10 namespace blink { | 11 namespace blink { |
11 | 12 |
12 class CSSParserContext; | 13 class CSSParserContext; |
13 class CSSValue; | 14 class CSSValue; |
14 | 15 |
15 enum class CSSSyntaxType { | 16 enum class CSSSyntaxType { |
16 TokenStream, | 17 TokenStream, |
17 Ident, | 18 Ident, |
(...skipping 27 matching lines...) Expand all Loading... |
45 | 46 |
46 const CSSValue* parse(CSSParserTokenRange, | 47 const CSSValue* parse(CSSParserTokenRange, |
47 const CSSParserContext*, | 48 const CSSParserContext*, |
48 bool isAnimationTainted) const; | 49 bool isAnimationTainted) const; |
49 bool isValid() const { return !m_syntaxComponents.isEmpty(); } | 50 bool isValid() const { return !m_syntaxComponents.isEmpty(); } |
50 bool isTokenStream() const { | 51 bool isTokenStream() const { |
51 return m_syntaxComponents.size() == 1 && | 52 return m_syntaxComponents.size() == 1 && |
52 m_syntaxComponents[0].m_type == CSSSyntaxType::TokenStream; | 53 m_syntaxComponents[0].m_type == CSSSyntaxType::TokenStream; |
53 } | 54 } |
54 | 55 |
| 56 InterpolationTypes createInterpolationTypes( |
| 57 const AtomicString& propertyName) const; |
| 58 |
55 private: | 59 private: |
56 Vector<CSSSyntaxComponent> m_syntaxComponents; | 60 Vector<CSSSyntaxComponent> m_syntaxComponents; |
57 }; | 61 }; |
58 | 62 |
59 } // namespace blink | 63 } // namespace blink |
60 | 64 |
61 #endif // CSSSyntaxDescriptor_h | 65 #endif // CSSSyntaxDescriptor_h |
OLD | NEW |