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

Unified Diff: third_party/WebKit/Source/core/animation/CSSInterpolationTypesMap.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/animation/CSSInterpolationTypesMap.h
diff --git a/third_party/WebKit/Source/core/animation/CSSInterpolationTypesMap.h b/third_party/WebKit/Source/core/animation/CSSInterpolationTypesMap.h
index 88561ce1fa6205d0b192050650d9b068c1150004..7a90cbdfe1defa1c47614f637926389243de3e28 100644
--- a/third_party/WebKit/Source/core/animation/CSSInterpolationTypesMap.h
+++ b/third_party/WebKit/Source/core/animation/CSSInterpolationTypesMap.h
@@ -5,13 +5,17 @@
#ifndef CSSInterpolationTypesMap_h
#define CSSInterpolationTypesMap_h
+#include "core/animation/CSSInterpolationType.h"
#include "core/animation/InterpolationTypesMap.h"
#include "platform/heap/Handle.h"
namespace blink {
+class CSSSyntaxDescriptor;
class PropertyRegistry;
+using CSSInterpolationTypes = Vector<std::unique_ptr<CSSInterpolationType>>;
+
class CSSInterpolationTypesMap : public InterpolationTypesMap {
public:
CSSInterpolationTypesMap(const PropertyRegistry* registry)
@@ -20,6 +24,10 @@ class CSSInterpolationTypesMap : public InterpolationTypesMap {
const InterpolationTypes& get(const PropertyHandle&) const final;
size_t version() const final;
+ static CSSInterpolationTypes createCSSInterpolationTypesForSyntax(
+ const AtomicString& propertyName,
+ const CSSSyntaxDescriptor&);
+
private:
Member<const PropertyRegistry> m_registry;
};

Powered by Google App Engine
This is Rietveld 408576698