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 |