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

Unified Diff: third_party/WebKit/Source/core/animation/CSSInterpolationTypesMap.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 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
new file mode 100644
index 0000000000000000000000000000000000000000..88561ce1fa6205d0b192050650d9b068c1150004
--- /dev/null
+++ b/third_party/WebKit/Source/core/animation/CSSInterpolationTypesMap.h
@@ -0,0 +1,29 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CSSInterpolationTypesMap_h
+#define CSSInterpolationTypesMap_h
+
+#include "core/animation/InterpolationTypesMap.h"
+#include "platform/heap/Handle.h"
+
+namespace blink {
+
+class PropertyRegistry;
+
+class CSSInterpolationTypesMap : public InterpolationTypesMap {
+ public:
+ CSSInterpolationTypesMap(const PropertyRegistry* registry)
+ : m_registry(registry) {}
+
+ const InterpolationTypes& get(const PropertyHandle&) const final;
+ size_t version() const final;
+
+ private:
+ Member<const PropertyRegistry> m_registry;
+};
+
+} // namespace blink
+
+#endif // CSSInterpolationTypesMap_h

Powered by Google App Engine
This is Rietveld 408576698