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

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

Issue 1680803003: Add additive animation support for CSS property background-position (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove redundant braces Created 4 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/LengthListPropertyFunctions.h
diff --git a/third_party/WebKit/Source/core/animation/LengthListPropertyFunctions.h b/third_party/WebKit/Source/core/animation/LengthListPropertyFunctions.h
index 0174a423bf32ea21d64b43706a679fabccad38d3..b15720dd112b0ab346f46baa85605dec2053c778 100644
--- a/third_party/WebKit/Source/core/animation/LengthListPropertyFunctions.h
+++ b/third_party/WebKit/Source/core/animation/LengthListPropertyFunctions.h
@@ -6,40 +6,20 @@
#define LengthListPropertyFunctions_h
#include "core/CSSPropertyNames.h"
-#include "core/style/ComputedStyle.h"
#include "platform/Length.h"
-#include "wtf/Allocator.h"
-#include "wtf/RefVector.h"
+#include "wtf/Vector.h"
namespace blink {
+class ComputedStyle;
+
class LengthListPropertyFunctions {
STATIC_ONLY(LengthListPropertyFunctions);
public:
- static ValueRange valueRange(CSSPropertyID property)
- {
- ASSERT(property == CSSPropertyStrokeDasharray);
- return ValueRangeNonNegative;
- }
-
- static const RefVector<Length>* getInitialLengthList(CSSPropertyID property)
- {
- ASSERT(property == CSSPropertyStrokeDasharray);
- return nullptr;
- }
-
- static const RefVector<Length>* getLengthList(CSSPropertyID property, const ComputedStyle& style)
- {
- ASSERT(property == CSSPropertyStrokeDasharray);
- return style.strokeDashArray();
- }
-
- static void setLengthList(CSSPropertyID property, ComputedStyle& style, PassRefPtr<RefVector<Length>> lengthList)
- {
- ASSERT(property == CSSPropertyStrokeDasharray);
- style.setStrokeDashArray(lengthList);
- }
-
+ static ValueRange valueRange(CSSPropertyID);
+ static Vector<Length> getInitialLengthList(CSSPropertyID);
+ static Vector<Length> getLengthList(CSSPropertyID, const ComputedStyle&);
+ static void setLengthList(CSSPropertyID, ComputedStyle&, Vector<Length>&& lengthList);
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698