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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSSyntaxDescriptor.h

Issue 2654783004: Store PropertyRegistry::Registrations on CSSInterpolationTypes for registered custom properties (Closed)
Patch Set: Rebased Created 3 years, 10 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
OLDNEW
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"
9 #include "core/css/parser/CSSParserTokenRange.h" 8 #include "core/css/parser/CSSParserTokenRange.h"
10 9
11 namespace blink { 10 namespace blink {
12 11
13 class CSSParserContext; 12 class CSSParserContext;
14 class CSSValue; 13 class CSSValue;
15 14
16 enum class CSSSyntaxType { 15 enum class CSSSyntaxType {
17 TokenStream, 16 TokenStream,
18 Ident, 17 Ident,
(...skipping 26 matching lines...) Expand all
45 CSSSyntaxDescriptor(String syntax); 44 CSSSyntaxDescriptor(String syntax);
46 45
47 const CSSValue* parse(CSSParserTokenRange, 46 const CSSValue* parse(CSSParserTokenRange,
48 const CSSParserContext*, 47 const CSSParserContext*,
49 bool isAnimationTainted) const; 48 bool isAnimationTainted) const;
50 bool isValid() const { return !m_syntaxComponents.isEmpty(); } 49 bool isValid() const { return !m_syntaxComponents.isEmpty(); }
51 bool isTokenStream() const { 50 bool isTokenStream() const {
52 return m_syntaxComponents.size() == 1 && 51 return m_syntaxComponents.size() == 1 &&
53 m_syntaxComponents[0].m_type == CSSSyntaxType::TokenStream; 52 m_syntaxComponents[0].m_type == CSSSyntaxType::TokenStream;
54 } 53 }
55 54 const Vector<CSSSyntaxComponent>& components() const {
56 InterpolationTypes createInterpolationTypes( 55 return m_syntaxComponents;
57 const AtomicString& propertyName) const; 56 }
58 57
59 private: 58 private:
60 Vector<CSSSyntaxComponent> m_syntaxComponents; 59 Vector<CSSSyntaxComponent> m_syntaxComponents;
61 }; 60 };
62 61
63 } // namespace blink 62 } // namespace blink
64 63
65 #endif // CSSSyntaxDescriptor_h 64 #endif // CSSSyntaxDescriptor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698