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

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: format 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
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
18 // Stores whether or not this descriptor is for a valid property. Do not
19 // access the contents of this descriptor unless this value is true.
20 // TODO(aazzam): Remove this once the switch in
21 // CSSPropertyParser::parseSingleValue() has been completely replaced by
22 // CSSPropertyDescriptors.
23 bool temporaryCanReadValue;
24
25 // Returns the corresponding CSSPropertyDescriptor for a given CSSPropertyID.
26 // Use this function to access the API for a property. Returns a descriptor
27 // with isValid set to false if no descriptor exists for this ID.
28 static const CSSPropertyDescriptor& get(CSSPropertyID);
29 };
30
31 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698