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

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

Issue 1858753003: Remove RawPtr from core/css (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CSSPropertyDescriptor_h 5 #ifndef CSSPropertyDescriptor_h
6 #define CSSPropertyDescriptor_h 6 #define CSSPropertyDescriptor_h
7 7
8 #include "core/css/properties/CSSPropertyFunctions.h" 8 #include "core/css/properties/CSSPropertyFunctions.h"
9 #include <type_traits> 9 #include <type_traits>
10 10
(...skipping 30 matching lines...) Expand all
41 } 41 }
42 42
43 static void add(CSSPropertyDescriptor); 43 static void add(CSSPropertyDescriptor);
44 44
45 // Returns the property's descriptor, or null if that property does not have an API yet. 45 // Returns the property's descriptor, or null if that property does not have an API yet.
46 // TODO(sashab): Change this to return a const& once all properties have an API. 46 // TODO(sashab): Change this to return a const& once all properties have an API.
47 static const CSSPropertyDescriptor* get(CSSPropertyID); 47 static const CSSPropertyDescriptor* get(CSSPropertyID);
48 48
49 // Accessors to functions on the property API. 49 // Accessors to functions on the property API.
50 CSSPropertyID id() const { return m_id; } 50 CSSPropertyID id() const { return m_id; }
51 RawPtr<CSSValue> parseSingleValue(CSSParserTokenRange& range, const CSSParse rContext& context) const { return m_parseSingleValue(range, context); } 51 CSSValue* parseSingleValue(CSSParserTokenRange& range, const CSSParserContex t& context) const { return m_parseSingleValue(range, context); }
52 52
53 private: 53 private:
54 // Used internally to check whether an array entry is filled or not. 54 // Used internally to check whether an array entry is filled or not.
55 bool m_valid; 55 bool m_valid;
56 56
57 CSSPropertyID m_id; 57 CSSPropertyID m_id;
58 CSSPropertyFunctions::parseSingleValueFunction m_parseSingleValue; 58 CSSPropertyFunctions::parseSingleValueFunction m_parseSingleValue;
59 }; 59 };
60 60
61 } // namespace blink 61 } // namespace blink
62 62
63 #endif // CSSPropertyDescriptor_h 63 #endif // CSSPropertyDescriptor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698