OLD | NEW |
---|---|
(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 | |
OLD | NEW |