Chromium Code Reviews| Index: third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h |
| diff --git a/third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h b/third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h |
| index d5cb6bd8fe52768b16808dd36ce71ff57c25054e..55c506ece5180104610878a8dd411bf5ec326905 100644 |
| --- a/third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h |
| +++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h |
| @@ -10,17 +10,14 @@ class CSSValue; |
| class CSSParserTokenRange; |
| class CSSParserContext; |
| +#define FUNCTION_IMPLEMENTED_FOR_PROPERTY(function, descriptor) \ |
|
sashab
2017/01/31 22:58:14
This can be rebased now? :)
If not make it METHOD
aazzam
2017/02/01 00:30:05
this is gone with the new patch of changing the de
|
| + descriptor.function != CSSPropertyAPI::function |
| + |
| // Stores function pointers matching those declared in CSSPropertyAPI. |
| struct CSSPropertyDescriptor { |
| const CSSValue* (*parseSingleValue)(CSSParserTokenRange&, |
| const CSSParserContext*); |
| - |
| - // Stores whether or not this descriptor is for a valid property. Do not |
| - // access the contents of this descriptor unless this value is true. |
| - // TODO(aazzam): Remove this once the switch in |
| - // CSSPropertyParser::parseSingleValue() has been completely replaced by |
| - // CSSPropertyDescriptors. |
| - bool temporaryCanReadValue; |
| + bool (*parseShorthand)(bool, CSSParserTokenRange&, const CSSParserContext*); |
| // Returns the corresponding CSSPropertyDescriptor for a given CSSPropertyID. |
| // Use this function to access the API for a property. Returns a descriptor |