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

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

Issue 2533673002: Added CSSPropertyAPI and CSS padding properties which implement this API (Closed)
Patch Set: review comments 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "core/CSSPropertyNames.h"
6 #include "core/css/properties/CSSPropertyAPI.h"
sashab 2016/11/30 23:48:39 Not needed yayyyyy
aazzam 2016/12/01 04:17:54 done
7
8 namespace blink {
9
10 class CSSValue;
11
12 // This struct should contain function pointers matching those declared in
alancutter (OOO until 2018) 2016/11/30 23:46:54 s/This struct should contain/contains/
aazzam 2016/12/01 04:17:54 done
13 // CSSPropertyAPI. API functions should also be added to the getDescriptor
14 // template below.
alancutter (OOO until 2018) 2016/11/30 23:46:54 This sentence is out of date.
aazzam 2016/12/01 04:17:54 done
15 struct CSSPropertyDescriptor {
16 const CSSValue* (*parseSingleValue)(CSSParserTokenRange&,
sashab 2016/11/30 23:48:39 // These methods match the declarations in rnefn f
aazzam 2016/12/01 04:17:54 I think i already am saying this in the comment ab
17 const CSSParserContext&);
18 CSSPropertyID id;
19
20 // This is used to check if the descriptor is valid and is for internal use
21 // only.
22 bool isValid;
alancutter (OOO until 2018) 2016/11/30 23:46:54 What "internal" means is very unclear here. Use pr
23
24 // This is placed in CSSPropertyDescriptor since it is used outside this file
25 // in the parser
alancutter (OOO until 2018) 2016/11/30 23:46:54 This is implicit in being a public method, no need
sashab 2016/11/30 23:48:39 full stop You can call this function to get the d
aazzam 2016/12/01 04:17:54 ^ see alan's comment
26 static const CSSPropertyDescriptor& get(CSSPropertyID);
27 };
28
29 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698