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

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

Issue 2405153002: Remove CSS.unregisterProperty as the WG resolved to remove it for now (Closed)
Patch Set: Created 4 years, 2 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 2016 The Chromium Authors. All rights reserved. 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 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 PropertyRegistry_h 5 #ifndef PropertyRegistry_h
6 #define PropertyRegistry_h 6 #define PropertyRegistry_h
7 7
8 #include "core/css/CSSSyntaxDescriptor.h" 8 #include "core/css/CSSSyntaxDescriptor.h"
9 #include "core/css/CSSValue.h" 9 #include "core/css/CSSValue.h"
10 #include "core/css/CSSVariableData.h" 10 #include "core/css/CSSVariableData.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 const bool m_inherits; 44 const bool m_inherits;
45 const Member<const CSSValue> m_initial; 45 const Member<const CSSValue> m_initial;
46 const RefPtr<CSSVariableData> m_initialVariableData; 46 const RefPtr<CSSVariableData> m_initialVariableData;
47 }; 47 };
48 48
49 void registerProperty(const AtomicString&, 49 void registerProperty(const AtomicString&,
50 const CSSSyntaxDescriptor&, 50 const CSSSyntaxDescriptor&,
51 bool inherits, 51 bool inherits,
52 const CSSValue* initial, 52 const CSSValue* initial,
53 PassRefPtr<CSSVariableData> initialVariableData); 53 PassRefPtr<CSSVariableData> initialVariableData);
54 void unregisterProperty(const AtomicString&);
55 const Registration* registration(const AtomicString&) const; 54 const Registration* registration(const AtomicString&) const;
56 55
57 DEFINE_INLINE_TRACE() { visitor->trace(m_registrations); } 56 DEFINE_INLINE_TRACE() { visitor->trace(m_registrations); }
58 57
59 private: 58 private:
60 HeapHashMap<AtomicString, Member<Registration>> m_registrations; 59 HeapHashMap<AtomicString, Member<Registration>> m_registrations;
61 }; 60 };
62 61
63 } // namespace blink 62 } // namespace blink
64 63
65 #endif // PropertyRegistry_h 64 #endif // PropertyRegistry_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/PropertyRegistration.idl ('k') | third_party/WebKit/Source/core/css/PropertyRegistry.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698