| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 const Registration* registration(const AtomicString&) const; | 54 const Registration* registration(const AtomicString&) const; |
| 55 size_t registrationCount() const { return m_registrations.size(); } |
| 55 | 56 |
| 56 DEFINE_INLINE_TRACE() { visitor->trace(m_registrations); } | 57 DEFINE_INLINE_TRACE() { visitor->trace(m_registrations); } |
| 57 | 58 |
| 58 private: | 59 private: |
| 59 HeapHashMap<AtomicString, Member<Registration>> m_registrations; | 60 HeapHashMap<AtomicString, Member<Registration>> m_registrations; |
| 60 }; | 61 }; |
| 61 | 62 |
| 62 } // namespace blink | 63 } // namespace blink |
| 63 | 64 |
| 64 #endif // PropertyRegistry_h | 65 #endif // PropertyRegistry_h |
| OLD | NEW |