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

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

Issue 2555923003: Make InvalidatableInterpolation's InterpolationTypes decided at effect application time (Closed)
Patch Set: Extended InterpolationTypesMap lifetime scope to fix release crash 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698