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 b15720dd112b0ab346f46baa85605dec2053c778..0174a423bf32ea21d64b43706a679fabccad38d3 100644 |
--- a/third_party/WebKit/Source/core/animation/LengthListPropertyFunctions.h |
+++ b/third_party/WebKit/Source/core/animation/LengthListPropertyFunctions.h |
@@ -6,20 +6,40 @@ |
#define LengthListPropertyFunctions_h |
#include "core/CSSPropertyNames.h" |
+#include "core/style/ComputedStyle.h" |
#include "platform/Length.h" |
-#include "wtf/Vector.h" |
+#include "wtf/Allocator.h" |
+#include "wtf/RefVector.h" |
namespace blink { |
- |
-class ComputedStyle; |
class LengthListPropertyFunctions { |
STATIC_ONLY(LengthListPropertyFunctions); |
public: |
- static ValueRange valueRange(CSSPropertyID); |
- static Vector<Length> getInitialLengthList(CSSPropertyID); |
- static Vector<Length> getLengthList(CSSPropertyID, const ComputedStyle&); |
- static void setLengthList(CSSPropertyID, ComputedStyle&, Vector<Length>&& lengthList); |
+ 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); |
+ } |
+ |
}; |
} // namespace blink |