Chromium Code Reviews| Index: Source/core/css/CSSKeyframeRule.h |
| diff --git a/Source/core/css/CSSKeyframeRule.h b/Source/core/css/CSSKeyframeRule.h |
| index 365ef74c1bb730d263f758cbca87805c6e037d3b..d143a53414c677fe56f56a2e2623921abefeeb5c 100644 |
| --- a/Source/core/css/CSSKeyframeRule.h |
| +++ b/Source/core/css/CSSKeyframeRule.h |
| @@ -45,10 +45,11 @@ public: |
| } |
| ~StyleKeyframe(); |
| - String keyText() const { return m_key; } |
| - void setKeyText(const String& s) { m_key = s; } |
| + String keyText() const; |
| + void setKeyText(const String&); |
| + void setKeys(const Vector<float>&); |
| - void getKeys(Vector<float>& keys) const { parseKeyString(m_key, keys); } |
| + Vector<float> getKeys() const { return m_keys; } |
|
apavlov
2013/06/26 10:45:40
This should also be
const Vector<float>& getKeys()
|
| const StylePropertySet* properties() const { return m_properties.get(); } |
| MutableStylePropertySet* mutableProperties(); |
| @@ -61,12 +62,11 @@ public: |
| private: |
| StyleKeyframe(); |
| - static void parseKeyString(const String&, Vector<float>& keys); |
| + static void parseKeyString(const String&, Vector<float>&); |
| RefPtr<StylePropertySet> m_properties; |
| - // FIXME: This should be a parsed vector of floats. |
| - // comma separated list of keys |
| - String m_key; |
| + mutable String m_keyText; |
| + Vector<float> m_keys; |
| }; |
| class CSSKeyframeRule : public CSSRule { |