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

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

Issue 2654403003: Added api_methods flag to CSSProperties.json5. (Closed)
Patch Set: Removed parseShorthand from valid_methods 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 CSSPropertyAPI_h 5 #ifndef CSSPropertyAPI_h
6 #define CSSPropertyAPI_h 6 #define CSSPropertyAPI_h
7 7
8 #include "core/CSSPropertyNames.h" 8 #include "core/CSSPropertyNames.h"
9 #include "wtf/Allocator.h" 9 #include "wtf/Allocator.h"
10 10
(...skipping 19 matching lines...) Expand all
30 // - When adding new functions, also add them to GET_DESCRIPTOR, and the get() 30 // - When adding new functions, also add them to GET_DESCRIPTOR, and the get()
31 // method in CSSPropertyDescriptors.cpp, and the descriptor struct in 31 // method in CSSPropertyDescriptors.cpp, and the descriptor struct in
32 // CSSPropertyDescriptor.h. 32 // CSSPropertyDescriptor.h.
33 class CSSPropertyAPI { 33 class CSSPropertyAPI {
34 STATIC_ONLY(CSSPropertyAPI); 34 STATIC_ONLY(CSSPropertyAPI);
35 35
36 public: 36 public:
37 // Parses a single CSS property and returns the corresponding CSSValue. If the 37 // Parses a single CSS property and returns the corresponding CSSValue. If the
38 // input is invalid it returns nullptr. 38 // input is invalid it returns nullptr.
39 static const CSSValue* parseSingleValue(CSSParserTokenRange&, 39 static const CSSValue* parseSingleValue(CSSParserTokenRange&,
40 const CSSParserContext*); 40 const CSSParserContext*) {
41 NOTREACHED();
42 return nullptr;
43 }
41 }; 44 };
42 45
43 } // namespace blink 46 } // namespace blink
44 47
45 #endif // CSSPropertyAPI_h 48 #endif // CSSPropertyAPI_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698