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

Unified Diff: third_party/WebKit/Source/core/css/PropertyRegistration.h

Issue 2654783004: Store PropertyRegistry::Registrations on CSSInterpolationTypes for registered custom properties (Closed)
Patch Set: Rebased Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
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 c4b28dadf855ebb7f1bb3425f16f730337350c90..0626c8c78e252f67b0aab984ee2b0295a3f88864 100644
--- a/third_party/WebKit/Source/core/css/PropertyRegistration.h
+++ b/third_party/WebKit/Source/core/css/PropertyRegistration.h
@@ -5,7 +5,7 @@
#ifndef PropertyRegistration_h
#define PropertyRegistration_h
-#include "core/animation/InterpolationType.h"
+#include "core/animation/CSSInterpolationType.h"
#include "core/animation/InterpolationTypesMap.h"
#include "core/css/CSSSyntaxDescriptor.h"
#include "core/css/CSSValue.h"
@@ -20,6 +20,8 @@ class ExceptionState;
class PropertyDescriptor;
class ScriptState;
+using CSSInterpolationTypes = Vector<std::unique_ptr<CSSInterpolationType>>;
+
class PropertyRegistration
: public GarbageCollectedFinalized<PropertyRegistration> {
public:
@@ -27,16 +29,11 @@ class PropertyRegistration
const PropertyDescriptor&,
ExceptionState&);
- PropertyRegistration(const CSSSyntaxDescriptor& syntax,
+ PropertyRegistration(const CSSSyntaxDescriptor&,
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)) {}
+ CSSInterpolationTypes);
const CSSSyntaxDescriptor& syntax() const { return m_syntax; }
bool inherits() const { return m_inherits; }

Powered by Google App Engine
This is Rietveld 408576698