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

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

Issue 2653733005: Added parseShorthand method from the parser to CSSPropertyAPI.h. (Closed)
Patch Set: rebase 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 26 matching lines...) Expand all
37 STATIC_ONLY(CSSPropertyAPI); 37 STATIC_ONLY(CSSPropertyAPI);
38 38
39 public: 39 public:
40 // Parses a single CSS property and returns the corresponding CSSValue. If the 40 // Parses a single CSS property and returns the corresponding CSSValue. If the
41 // input is invalid it returns nullptr. 41 // input is invalid it returns nullptr.
42 static const CSSValue* parseSingleValue(CSSParserTokenRange&, 42 static const CSSValue* parseSingleValue(CSSParserTokenRange&,
43 const CSSParserContext*) { 43 const CSSParserContext*) {
44 NOTREACHED(); 44 NOTREACHED();
45 return nullptr; 45 return nullptr;
46 } 46 }
47
48 static bool parseShorthand(bool,
49 CSSParserTokenRange&,
50 const CSSParserContext*) {
51 NOTREACHED();
sashab 2017/01/31 22:58:14 Add similar comment above this :)
aazzam 2017/02/01 00:30:05 added :)
52 return false;
53 }
47 }; 54 };
48 55
49 } // namespace blink 56 } // namespace blink
50 57
51 #endif // CSSPropertyAPI_h 58 #endif // CSSPropertyAPI_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698