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

Unified Diff: third_party/WebKit/Source/core/animation/SizeListPropertyFunctions.h

Issue 2280553002: Allow interpolation of background-size values with keywords in CSS Animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/SizeListPropertyFunctions.h
diff --git a/third_party/WebKit/Source/core/animation/SizeListPropertyFunctions.h b/third_party/WebKit/Source/core/animation/SizeListPropertyFunctions.h
new file mode 100644
index 0000000000000000000000000000000000000000..08b4432cc9bb5d27ea95d8c4b96e25c0144e31f2
--- /dev/null
+++ b/third_party/WebKit/Source/core/animation/SizeListPropertyFunctions.h
@@ -0,0 +1,28 @@
+// 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 SizeListPropertyFunctions_h
+#define SizeListPropertyFunctions_h
+
+#include "core/CSSPropertyNames.h"
+#include "core/style/FillLayer.h"
+#include "wtf/Vector.h"
+
+namespace blink {
+
+class ComputedStyle;
+
+using SizeList = Vector<FillSize, 1>;
suzyh_UTC10 (ex-contributor) 2016/08/26 04:14:34 "using" statements are discouraged in header files
alancutter (OOO until 2018) 2016/08/26 13:31:48 I think that's referring to the other form of "usi
suzyh_UTC10 (ex-contributor) 2016/08/30 08:01:07 Oh, right. I missed that distinction. All good, th
+
+class SizeListPropertyFunctions {
+ STATIC_ONLY(SizeListPropertyFunctions);
+public:
+ static SizeList getInitialSizeList(CSSPropertyID);
+ static SizeList getSizeList(CSSPropertyID, const ComputedStyle&);
+ static void setSizeList(CSSPropertyID, ComputedStyle&, SizeList&);
+};
+
+} // namespace blink
+
+#endif // SizeListPropertyFunctions_h

Powered by Google App Engine
This is Rietveld 408576698