Chromium Code Reviews| 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 | |
| 7 namespace blink { | |
| 8 | |
| 9 class CSSValue; | |
| 10 class CSSParserTokenRange; | |
| 11 class CSSParserContext; | |
| 12 | |
| 13 // Stores function pointers matching those declared in CSSPropertyAPI. | |
| 14 struct CSSPropertyDescriptor { | |
| 15 const CSSValue* (*parseSingleValue)(CSSParserTokenRange&, | |
| 16 const CSSParserContext&); | |
| 17 CSSPropertyID id; | |
| 18 | |
| 19 // Stores whether or not this descriptor is for a valid property. Do not | |
| 20 // access the contents of this descriptor unless this value is true. | |
| 21 bool isValid; | |
|
ojan
2016/12/07 00:48:57
Is this just a temporary thing we need while we're
ojan
2016/12/07 00:49:41
In particular, I'm trying to understand the end st
aazzam
2016/12/07 02:16:42
yep this will be removed eventually! and once the
| |
| 22 | |
| 23 // Returns the corresponding CSSPropertyDescriptor for a given CSSPropertyID. | |
| 24 // Use this function to access the API for a property. Returns a descriptor | |
| 25 // with isValid set to false if no descriptor exists for this ID. | |
| 26 static const CSSPropertyDescriptor& get(CSSPropertyID); | |
| 27 }; | |
| 28 | |
| 29 } // namespace blink | |
| OLD | NEW |