| Index: third_party/WebKit/Source/core/css/PropertyRegistration.h
|
| diff --git a/third_party/WebKit/Source/core/css/PropertyRegistration.h b/third_party/WebKit/Source/core/css/PropertyRegistration.h
|
| index 2afceab0154759e8fb9d6d80dff56c211160f669..c4b28dadf855ebb7f1bb3425f16f730337350c90 100644
|
| --- a/third_party/WebKit/Source/core/css/PropertyRegistration.h
|
| +++ b/third_party/WebKit/Source/core/css/PropertyRegistration.h
|
| @@ -5,7 +5,13 @@
|
| #ifndef PropertyRegistration_h
|
| #define PropertyRegistration_h
|
|
|
| +#include "core/animation/InterpolationType.h"
|
| +#include "core/animation/InterpolationTypesMap.h"
|
| +#include "core/css/CSSSyntaxDescriptor.h"
|
| +#include "core/css/CSSValue.h"
|
| +#include "core/css/CSSVariableData.h"
|
| #include "wtf/Allocator.h"
|
| +#include "wtf/RefPtr.h"
|
| #include "wtf/text/WTFString.h"
|
|
|
| namespace blink {
|
| @@ -14,13 +20,42 @@ class ExceptionState;
|
| class PropertyDescriptor;
|
| class ScriptState;
|
|
|
| -class PropertyRegistration {
|
| - STATIC_ONLY(PropertyRegistration);
|
| -
|
| +class PropertyRegistration
|
| + : public GarbageCollectedFinalized<PropertyRegistration> {
|
| public:
|
| static void registerProperty(ScriptState*,
|
| const PropertyDescriptor&,
|
| ExceptionState&);
|
| +
|
| + PropertyRegistration(const CSSSyntaxDescriptor& syntax,
|
| + bool inherits,
|
| + const CSSValue* initial,
|
| + PassRefPtr<CSSVariableData> initialVariableData,
|
| + InterpolationTypes interpolationTypes)
|
| + : m_syntax(syntax),
|
| + m_inherits(inherits),
|
| + m_initial(initial),
|
| + m_initialVariableData(initialVariableData),
|
| + m_interpolationTypes(std::move(interpolationTypes)) {}
|
| +
|
| + const CSSSyntaxDescriptor& syntax() const { return m_syntax; }
|
| + bool inherits() const { return m_inherits; }
|
| + const CSSValue* initial() const { return m_initial; }
|
| + CSSVariableData* initialVariableData() const {
|
| + return m_initialVariableData.get();
|
| + }
|
| + const InterpolationTypes& interpolationTypes() const {
|
| + return m_interpolationTypes;
|
| + }
|
| +
|
| + DEFINE_INLINE_TRACE() { visitor->trace(m_initial); }
|
| +
|
| + private:
|
| + const CSSSyntaxDescriptor m_syntax;
|
| + const bool m_inherits;
|
| + const Member<const CSSValue> m_initial;
|
| + const RefPtr<CSSVariableData> m_initialVariableData;
|
| + const InterpolationTypes m_interpolationTypes;
|
| };
|
|
|
| } // namespace blink
|
|
|