| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |