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

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

Issue 2580793005: Split the CSSParserContext class out of CSSParserMode into its own file. (Closed)
Patch Set: one extra missing include Created 4 years 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 "core/css/CSSValue.h" 9 #include "core/css/CSSValue.h"
10 #include "core/css/parser/CSSParserMode.h" 10 #include "core/css/parser/CSSParserContext.h"
11 #include "core/css/parser/CSSParserTokenRange.h" 11 #include "core/css/parser/CSSParserTokenRange.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 // We will use this API to represent all functions used for property-specific 15 // We will use this API to represent all functions used for property-specific
16 // logic inside the blink style engine. All specific properties are subclasses 16 // logic inside the blink style engine. All specific properties are subclasses
17 // of CSSPropertyAPI. 17 // of CSSPropertyAPI.
18 // 18 //
19 // To add a new property using this API: 19 // To add a new property using this API:
20 // - Make a class that implements CSSPropertyAPI, and implement the static 20 // - Make a class that implements CSSPropertyAPI, and implement the static
(...skipping 13 matching lines...) Expand all
34 public: 34 public:
35 // Parses a single CSS property and returns the corresponding CSSValue. If the 35 // Parses a single CSS property and returns the corresponding CSSValue. If the
36 // input is invalid it returns nullptr. 36 // input is invalid it returns nullptr.
37 static const CSSValue* parseSingleValue(CSSParserTokenRange&, 37 static const CSSValue* parseSingleValue(CSSParserTokenRange&,
38 const CSSParserContext&); 38 const CSSParserContext&);
39 }; 39 };
40 40
41 } // namespace blink 41 } // namespace blink
42 42
43 #endif // CSSPropertyAPI_h 43 #endif // CSSPropertyAPI_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698